AD
Administrator
Syncfusion Team
March 2, 2007 10:37 PM UTC
Hi Srdjan,
You can try the below code snippet and let me know if this helps.
private void gridGroupingControl1_CurrentRecordContextChange(object sender, CurrentRecordContextChangeEventArgs e)
{
if( e.Action == Syncfusion.Grouping.CurrentRecordAction.EndEditCalled)
{
try
{
DataRowView dr = e.Record.GetData() as DataRowView;
if( dr.Row != null)
dr.Row.EndEdit();
}
catch(Exception ex)
{
DialogResult result = MessageBox.Show(ex.Message,"SaveRecord",MessageBoxButtons.OKCancel );
e.Cancel = true;
if( result == DialogResult.OK )
e.Table.CurrentRecord.CancelEdit();
}
}
}
Best regards,
Haneef