Hi Shubham,
Greetings from Syncfusion Support.
Query: If we create same row with taskId and try to delete the previous row it deletes the new created row.
From the given details we found that, you have added a record with the same primary key column values. The CRUD actions are performed based on the primary key column values. So the primary key column values must be unique.
Regards,
Jagadesh Ram