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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Default Values

Thread ID:

Created:

Updated:

Platform:

Replies:

88194 Jul 16,2009 10:39 PM UTC Jul 17,2009 03:17 PM UTC WinForms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On July 16, 2009 10:39 PM UTC

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".

Rajadurai C [Syncfusion]
Replied On 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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;