AD
Administrator
Syncfusion Team
March 16, 2007 02:44 PM UTC
Hi Vicko,
If you wan to trigger the CurrentRecordContextChanged event of the grid then need to move the current record to some other position in a grid. Here is a code snippet to show this.
Record rec = this.gridGroupingControl1.Table.CurrentRecord;
if( rec != null)
{
int index = this.gridGroupingControl1.Table.Records.IndexOf(rec);
if( index > 0 )
this.gridGroupingControl1.Table.Records[index -1].SetCurrent();
else if (index == 0 )
this.gridGroupingControl1.Table.Records[1].SetCurrent();
}
else
this.gridGroupingControl1.Table.Records[0].SetCurrent();
Best regards,
Haneef