Jul 12, 2019 09:06 AM|Yongqing Yu|LINK
I am getting th error Object reference not set to an instance of an object. on the line where I call my delete row
The reason for this error is that you can't convert an empty string to an int type.
This is empty.
Why do you use two ID to delete data here? Only one ID was used in the code you initially provided.
I'm not sure what you want to do, could you please provide your detailed foreground and background codes?
And the function you want to achieve is to removal of data from the currently selected one row, or the removal of multi-row data?