Add New Record Default Values and Retaining Value

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

1 Reply

AD Administrator Syncfusion Team 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

Loader.
Up arrow icon