Hi, G.YavanaArasy, yes is one good example, now, what do you carching, one new value, of one new record?
Tank Gilbert.
>Hi Gilberto,
Sorry for the delay in responding.
"Recordvaluechanged event" is triggered even if record values are not changes in Edit Mode. So check for the variable, 'IsRecordValueChanged' which is set to true if record value is changed.
In GridGroupingControl we can update the grid as well as data source more effectively by handling the CurrentRecordContextChange event than the DataSourceRowUpdating event. In CurrentRecordContextChange event you can access the current record and then you can change the value manually using SetValue method. Please refer the below code snippet which illustrates this:
[C#]
protected void GridGroupingControl1_CurrentRecordContextChange(object sender, Syncfusion.Grouping.CurrentRecordContextChangeEventArgs e)
{
//This event will be called on each action performed on a record. Here "EndEditComplete" is the final action for Editing. If this action is succeed, then data Source can be updated here.
if (e.Action == Syncfusion.Grouping.CurrentRecordAction.EndEditComplete && e.Success==true)
{
//This event is triggered even if record values are not changes in Edit Mode. So check for the variable, 'IsRecordValueChanged' which is set to true if record value is changed.
if (IsRecordValueChanged)
{
Record r = e.Table.CurrentRecord;
r.SetValue("FirstName", "Johny");
}
}
}
Please refer the sample from the following link which illustrates the above:
http://websamples.syncfusion.com/samples/Grid.Web/6.1.0.34/F72566/main.htmPlease let me know if you have any other concerns.
Regards,
G.Yavana