Adding controls in DataGrid.

zhaozj2021-02-16  60

Adding controls in DataGrid. Reposted: Andy.M Date: 2003-07-12 Popularity: 55icollection createDataSource () {dataable dt = new datatable (); DATAROW DR; DT.COLUMNS.ADD (New Datacolumn ("Theme", TypeOf (String)); Dt.columns.add (New Datacolumn ("Publishing Unit", TypeOf (String))); DT.COLUMNS.ADD (New Datacolumn ("Publish Time", TypeOf (String))); DT.COLUMNS.ADD (New Datacolumn ("Delete", TypeOf (String))); SqlDataReader MyReader1 = New dbconn (). GetReader ("Select * from bbs"); while (MyReader1.Read ()) {DR = DT.NEWROW (); DR [0 ] = " "; DR [1 ] = MyReader1.getstring (3); DR [2] = Convert.TOString (MyReader1.GetValue (4)); // htmlinputcheckbox checkbox = new htmlinputcheckbox (); //checkbox.id="hello "; // checkbox. Visible = true; DR [3] = "


New Post(0)