Do While oDr.Read Dim txt1 As New TextBox Dim oTable1 As New Table Dim oRow2 As New TableRow Dim oCell2 As New TableCell Dim quantity As String = oDr("Qty") & "" txt1.Text = quantity txt1.CssClass = "smalltextbox" txt1.Width = New Unit(60, UnitType.Pixel) txt1.Height = New Unit(11, UnitType.Pixel) txt1.Style.Add("text-align", "right") oRow2.Cells.Add(oCell2) oCell2.Controls.Add(txt1) oCell2.HorizontalAlign = HorizontalAlign.Right oTable1.Width = New Unit(100, UnitType.Percentage) oTable1.Rows.Add(oRow2) DirectCast(e.Row, System.Web.UI.WebControls.GridViewRow).Cells.Item(8).Controls.Add(oTable1) Loop
txt1.ID = "SomeUniqueNameBasedOnYourDataSource"
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)