How to add empty row in between exsting rows of a grid like excel

Hi

I want to know that if i want to add an empty row in middle of 10 existing rows in a grid for example. What should i do ?

1 Reply

RC Rajadurai C Syncfusion Team June 26, 2009 02:01 PM UTC

Hi Natasha,

Thanks for your interest in Syncfusion Products.

If you would like to add an empty row in the middle of the grid, it can be achieved by adding a row to the binded datasource. Please refer to the following code that adds a new row through datatable binded to grid at specific index.

DataRow r = dt.NewRow();//dt is datatable binded to grid
dt.Rows.InsertAt(r, 3);
dt.AcceptChanges();

This adds a new row at rowindex 3.

Regards,
Rajadurai

Loader.
Up arrow icon