Hi Kingsley,
You can use the RowEditing event for selecting the Primary key. In the event, check for the last row index and add the primary key respectively. Here is the code snippet.
private void gridDataBoundGrid1_RowEditing(object sender, Syncfusion.Windows.Forms.Grid.GridRowEventArgs e)
{
if(this.gridDataBoundGrid1.Model.RowCount == e.RowIndex)
{
this.gridDataBoundGrid1[e.RowIndex,1].CellValue = e.RowIndex;
}
}
Refer this
sample for details.
Let us know if you need further assistance,
Regards,
Madhan.