AD
Administrator
Syncfusion Team
March 14, 2007 02:44 PM UTC
Hi Srdjan,
You can use the Table.ChangedFieldsArray collection property to detect changes in the datasource when the ListChanged event is called. Here is a code snippet to show this.
private void gridGroupingControl1_CurrentRecordContextChange(object sender, CurrentRecordContextChangeEventArgs e)
{
if( e.Action == CurrentRecordAction.EndEditCalled )
{
Record rec = e.Record as Record;
if( rec != null)
{
foreach(ChangedFieldInfo fInfo in e.Table.ChangedFieldsArray )
Console.WriteLine( " ColumnName = {0}: OldValue:{1} => NewValue:{2}", fInfo.Name, fInfo.OldValue, fInfo.NewValue);
}
}
}
Best regards,
Haneef