Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
550
Deleting a row from the grid
posted

I am populating the grid with the data in page load. I have a imagebutton in a templateColumn in the grid which I am using to delete rows from the grid.Now I am handling the deletion of a row from the grid in CellSelectionChanged event of the grid. I am deleting the selected row from the datatable that I am using to bind the grid and providing the changed datatable as datasource for the grid.

I am getting the following error when I click on the imageButton in the TemplateColumn of the grid.

" This row has been removed from a table and does not have any data.  BeginEdit() will allow creation of new data in this row."

Is there any way to fix the mentioned issue?