We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Default Values

I have exactly the same requirement as Detlef needed in the following thread http://www.syncfusion.com/support/forums/grid-windows/76128/Is-there-a-DefaultValuesNeeded-, however the solution zip file at the end of the thread is no longer available. Basically, I need to set some values in the data row that is being added. The columns I need to set are NOT displayed in the grid control. This problem would be sooo much simpler if there were a "RowSaving" event rather than a "RowSaved".

1 Reply

RC Rajadurai C Syncfusion Team July 17, 2009 03:17 PM UTC

Hi David,

Thanks for your interest in Syncfusion Products.

If you would like the default values to get updated in the underlying datarow, after setting the value try to call AcceptChanges() method of datatable binded to grid. Please refer to the following code handled in CurrentCellChanged event to achieve this.

this.gridDataBoundGrid1.CurrentCell.EndEdit();
dt.AcceptChanges();//dt is datatable object


Let me know if you have any further concerns.

Regards,
Rajadurai

Loader.
Live Chat Icon For mobile
Up arrow icon