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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Add New Record Default Values and Retaining Value

Thread ID:

Created:

Updated:

Platform:

Replies:

55707 Feb 2,2007 06:29 PM UTC Feb 2,2007 07:43 PM UTC WinForms 1
loading
Tags: GridControl
de
Asked On February 2, 2007 06:29 PM UTC

Hello,
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.

Regards

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

Hi DKP,

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 )
Console.WriteLine(e.Record.ToString());
}

Best regards,
Haneef

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

;