Overview
By default GridView allows us to delete only a record (a row) at a time, it will be better if we can select multiple rows with check boxes and delete them in a batch.
Reference
Reference 1 shows a example of multiple delete in GridView with SqlDataSource. Reference 2 demonstrates the same thing and add a simple JavaScript asking user to confirm deleting.
I'm using ObjectDataSource in my code, which is very similar to what Reference 1 shows.
沒有留言:
發佈留言