Hi Paurnima,
Thanks for your interest in Syncfusion products.
We had analyzed your reported scenario. In order to add the new record based on some criteria , you can use RecordValueChanging event and you can check record kind by using Record.Kind property. Please make use of the below code and refer to the attached sample.
Code example
this.gridGroupingControl1.RecordValueChanging += new RecordValueChangingEventHandler(gridGroupingControl1_RecordValueChanging);
void gridGroupingControl1_RecordValueChanging(object sender, RecordValueChangingEventArgs e)
{
if (e.Record.Kind == DisplayElementKind.AddNewRecord)
{
GridCurrentCell cc = this.gridGroupingControl1.TableControl.CurrentCell;
object value = e.Record.GetValue("CategoryName");
if (cc.MoveToRowIndex != cc.MoveFromRowIndex)
{
if (value == null)
{
e.Cancel = true;
}
}
}
}
Sample link
Regards,
Piruthiviraj