AspDotNetAtoms.com provides daily updates on ASP.NET Tutorials, Programming Resources, .NET Articles, Authors and more.

Categories

Recent Posts

Wrapping Database Modifications within a Transaction : Scott Mitchell

Friday, July 04 2008

As we saw starting with the An Overview of Inserting, Updating, and Deleting Data tutorial, the GridView provides built-in support for row-level editing and deleting. With a few clicks of the mouse it is possible to create a rich data modification interface without writing a line of code, so long as you are content with editing and deleting on a per-row basis. However, in certain scenarios this is insufficient and we need to provide users with the ability to edit or delete a batch of records. For example, most web-based email clients use a grid to list each message where each row includes a checkbox along with the email’s information (subject, sender, and so forth). This interface permits the user to delete multiple messages by checking them and then clicking a “Delete Selected Messages” button. A batch editing interface is ideal in situations where users commonly edit many different records. Rather than forcing the user to click Edit, make their change, and then click Update for each record that needs to be modified, a batch editing interface renders each row with its editing interface. The user can quickly modify the set of rows that need to be changed and then save these changes by clicking an “Update All” button. In this set of tutorials we’ll examine how to create interfaces for inserting, editing, and deleting batches of data...

Read More:
Wrapping Database Modifications within a Transaction : Scott Mitchell
Also See:
Understanding Script Injection Attacks : Sanjit Sil
Refresh GridView in Parent Page : AzamSharp
Using TemplateFields in the DetailsView Control : Scott Mitchell
Changing GridView Column Color : AzamSharp
ObjectDataSource in Depth (Part 2) : Manuel Abadia

Post your comment

Comment