Allow Grid Row Add and Delete

Maybe i am just missing it, but how do you set the grid to allow new rows to be added and current rows to be deleted, by the user?


1 Reply

AD Administrator Syncfusion Team December 9, 2008 08:44 PM UTC

There are methods/properties that allow you to insert, delete or add rows to a GridControl.

//insert
grid.Model.insertRows(startRow, count);

//delete
grid.model.RemoveRows(startRow, count);

//add a row
grid.Model.ColumnCount += 1;


There is no UI exposed to add a new row or to delete a row. In the upcoming Vol 1, 2009 release, we will support databinding, and that will include supporting a AddNew record and being able to delete records.


Loader.
Up arrow icon