戰地連結︰ Home My Flickr NBA.com About

2008年8月12日星期二

Multiple Delete in GridView

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

  1. Deleting Multiple Rows in a GridView
  2. delete multiple rows from gridview

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.

沒有留言: