Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Adding rows to the data grid

Hi
I need to add rows in the middle of a data grid and save that back to the SQL table . How do I do that . I can add record at the begining of a data grid and at the end of a data grid but not in the middle of a data grid . Please help
Thanks
[262 byte] By [software_develo] at [2007-11-11 7:20:07]
# 1 Re: Adding rows to the data grid
You can insert a new row in the rows collection of the data table and then bind it to the grid. Before binding set the grid.EditItemIndex = the inserted row index this would give a blank row where needed.
srinivas_s at 2007-11-11 21:49:14 >