better than msflexgrid

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 ?
 
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)
 
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).
 
Back
Top