Feb 22, 2003 #1 N Ncode Member 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 Bucky Well-known member Joined Dec 23, 2001 Messages 791 Location East Coast User Rank *Expert* 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: Code: 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: Code: myDataGrid.Tables(0).Rows.InsertAt(myDataRow, 3)
Feb 22, 2003 #3 Robby Moderator Joined Nov 17, 2002 Messages 3,461 Location Montreal, Ca. User Rank *Expert* 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).