Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Web Form Binding?
Message
 
À
11/06/2004 14:20:48
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00908254
Message ID:
00913152
Vues:
18
Terry,

Ultimately, I think the bottom line here is that what you're trying to do is best accomplished by a control like the Infragistics DataGrid that allows in-place editing and batch-save abilities. This is actually one of the key reasons I'm going through all the pain of this integration now. The out-of-the-box controls that are part of ASP.NET (and from which we've created subclasses in MM .NET) are very limited in their scope. This is why companies like Infragistics are doing so well.

What the Infragistics grid is doing is no small feat and would be difficult to replicate--they provide much better event hooks for the entire batch process than are available in the standard ASP.NET controls. For example, here is the order in which batch mode event handlers are called for the Infragistics DataGrid (this is an excerpt for documentation I created for an upcoming release of the MM .NET Dev Guide):

  • InitializeLayout - called when the grid is being intialized. Provides a place to initialize grid and column settings

  • AddRowBatch - called on post back once for each row that is added to the grid

  • UpdateCellBatch - called on post back once for each cell that is updated in the grid, including cells in new and edited rows

  • DeleteRowBatch - called on post back once for each row that is deleted in the grid

  • Unload - Page-level event called on post back that fires after all updates, deletes, and adds have been applied

Because I believe this is the best way to go (to use a DataGrid like Infragistics) I have spent many hours integrating this control with MM .NET. What's nice about the MM .NET integration is that it cuts out a tremendous amount of code you would normally have to write using the Infragistics controls because of our use of business objects.

Although it's mechanically possible to do something similar using the standard ASP.NET controls there are so many other issues with these controls that it makes much more sense to leverage MM .NET's data binding with a product like Infragistics where you and your end users will be impressed with the look, feel, and functionality of the controls.

When it comes to non-transactional data binding, retrieving, posting back, and saving as you find in many web applications, the standard MM .NET Web Form controls work great and are used in a good number of web sites with great success...but for this particular problem I think you'll find the solution provided by our subclasses of the Infragistics controls is your best bet.

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform