I am trying to enable bulk deleting in my web app. The data I am displaying is in a GridView and I want to add a column which would contain one checkbox (or any alternative) for every row. The user could mark rows to delete and then delete all of them at once.
When I add a CheckBoxField, it must be bound to a column which I, naturally, don't have in the DataTable. I tried adding a new column to the DataTable programatically, but it is rendered as read-only whatever I do.
The data is retrieved from the DB into a DataTable, which I add to a DataSet and bind to the GridView as its data source.
Is there a way I could achieve this?