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.
Unfortunately, activation email could not send to your email. Please try again.

Add New Record Default Values and Retaining Value

Thread ID:





55707 Feb 2,2007 01:29 PM Feb 2,2007 02:43 PM Windows Forms 1
Tags: GridControl
Asked On February 2, 2007 01:29 PM

I am using GGC. I have first column as list of default value templates. Based on selection i want to populate values only in AddNewRecord. I am facing following problems:

1 - I am using Hashtable to store the values. As soon as i hit the enter the new record is commited to Datasource and the values are not commited to datasource.

2 - When i am editing GridRecord the Cell does't show the new values unless i hit the Enter key.

Any pointer or sample will be of great help.


Administrator [Syncfusion]
Replied On February 2, 2007 02:43 PM


You can try catching the CurrentRecordContextChanged event and set the initial values there.

private void gridGroupingControl1_CurrentRecordContextChange(object sender, CurrentRecordContextChangeEventArgs e)
if(e.Record is GridAddNewRecord
&& e.Action == CurrentRecordAction.EndEditCalled )

Best regards,


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.

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.