Feb 22, 2003 #1 N Ncode Newcomer Joined Feb 22, 2003 Messages 15 is there somthing better than msflexgrid control in vb .net ? if so, how can insert a row between rows ?
is there somthing better than msflexgrid control in vb .net ? if so, how can insert a row between rows ?
Feb 22, 2003 #2 B Bucky Contributor Joined Dec 23, 2001 Messages 791 Location East Coast The DataGrid control, which is a standard control part of Windows Forms, can be used for binding data. To insert a row at a certain index, use the InsertAt method of the DataTable containing the data. For example, this will insert the myDataRow into the first DataTable in myDataGrid to the 4th position in the rows: Visual Basic: myDataGrid.Tables(0).Rows.InsertAt(myDataRow, 3)
The DataGrid control, which is a standard control part of Windows Forms, can be used for binding data. To insert a row at a certain index, use the InsertAt method of the DataTable containing the data. For example, this will insert the myDataRow into the first DataTable in myDataGrid to the 4th position in the rows: Visual Basic: myDataGrid.Tables(0).Rows.InsertAt(myDataRow, 3)
Feb 22, 2003 #3 R Robby Ultimate Contributor Joined Nov 17, 2002 Messages 3,460 Location Montreal, Ca. Be careful though, if you bins the Datagrid to a Dataset. The Dataset will not know about these changes (Dataset1.HasChanges will still be False).
Be careful though, if you bins the Datagrid to a Dataset. The Dataset will not know about these changes (Dataset1.HasChanges will still be False).