Hi Michal,
Thanks for contacting Syncfusion support.
In your code example we found that you have not set PrimaryKey field in Grid Columns which is the cause of the issue. While performing delete operation we delete the record using primarykey. In order to resolve the issue, set “isPrimaryKey” property to the Primary key column.
Find the code example:
.Columns(col =>
{
col.Field("OrderID").HeaderText("Order ID").IsPrimaryKey(true).TextAlign(TextAlign.Right).Width(100).ValidationRules(v => v.AddRule("required", true).AddRule("minlength", 3)).Add();
col.Field("CustomerID").HeaderText("Customer ID").TextAlign(TextAlign.Right).Width(90).Add();
--------------------------
}) |
Regards,
Prasanna Kumar N.S.V