Ncode Posted February 22, 2003 Posted February 22, 2003 is there somthing better than msflexgrid control in vb .net ? if so, how can insert a row between rows ? Quote
*Experts* Bucky Posted February 22, 2003 *Experts* Posted February 22, 2003 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: myDataGrid.Tables(0).Rows.InsertAt(myDataRow, 3) Quote "Being grown up isn't half as fun as growing up These are the best days of our lives" -The Ataris, In This Diary
Moderators Robby Posted February 22, 2003 Moderators Posted February 22, 2003 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). Quote Visit...Bassic Software
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.