I am not sure if this question belongs to this group, but I will
really appreciate any responses.

I am making a windows application using C#. I have to make a copy-paste
program which works on DataGrid. I have connected a datagrid with a
database table using dataAdapter and datatable component.

By performing cut-paste I was getting errors about system trying to
update a Deleted row from datagrid. I made changes in the code.
while performing paste or cut from the datagrid, I call
UpdateDataTable() and AcceptChanges() to the database.

Now the error comes only if I cut the rows from datagrid and make it
empty, call AcceptChanges() and then paste the some content again.

any ideas?
Thanks
Jag