BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
this.gridGroupingControl1.CurrentRecordContextChange += gridGroupingControl1_CurrentRecordContextChange;
void gridGroupingControl1_CurrentRecordContextChange(object sender, Syncfusion.Grouping.CurrentRecordContextChangeEventArgs e)
{
if (e.Action == Syncfusion.Grouping.CurrentRecordAction.EndEditCalled)
{
Record rec = e.Record as Record;
int newIndex = rec.GetRowIndex();
string myCode = Convert.ToString(rec.GetValue("Country"));
if (this.gridGroupingControl1.Table.CurrentRecord != null )
{
foreach (Record r in e.Table.Records)
{
int rowindex = r.GetRowIndex();
string existValue = r.GetValue(this.gridGroupingControl1.TableDescriptor.Fields["Country"]).ToString();
if (myCode == existValue && rowindex != newIndex)
{
MessageBox.Show("Exists!");
e.Cancel = true;
break;
}
}
}
}
} |