AD
Administrator
Syncfusion Team
September 22, 2004 01:06 PM UTC
When you set EnableAddNew = true then the grid will show a row at the bottom marked with an Asterisk.
Check out the RecordNavDataBound example, scroll to the bottom and see this row. The user can start typing in a cell in that row and a row will be added.
In order to programmatically add a row, you can call grid.Binder.AddNew(), change cell values and the call grid.Binder.EndEdit();
Or you could simple call
DataTable table;
table.Rows.Add(table.NewRow());
if your underlying datasource is a Ado.Net DataTable
Stefan