Selecting, Confirming and Deleting Multiple DataGrid items in ASP.NET: ASP Alliance: "Selecting, Confirming and Deleting Multiple Data Grid items Always wanted to build an easy solution to select multiple items from an ASP.NET DataGrid and delete them all at once like hotmail does? Well, it is built in just a few simple steps. To start with, I am assuming that you are using an Access database in the backend and know how to populate DataGrid from database in ASP.NET. If not, look at my other article for beginners 'Basics of Displaying Database Items on Web in ASP.NET' that will be published soon. Now, to create a selection checkbox in your data grid, first set up your data grid as you would do it normally by dragging and dropping from toolbox in to your webForm1.aspx page. Then right click on data grid and select property builder. Go to column property tab and add a template column to the list of selected columns keeping it on the top of the list. Set the header text value as Select or whatever you wish. Click OK when you are done. Once you are back on your design page, again right click on data grid and this time you will see another option of edit template column. Click on to edit template column and drag and drop checkbox control into I"
Wednesday, December 5, 2007
Selecting, Confirming and Deleting Multiple DataGrid items in ASP.NET: ASP Alliance
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment