Monday, August 20, 2007

GridView Vs DataGrid

As long as control builders properly partition their state into behavioral state (to maintain core
functionality) and UI state (to retain contents), this statement should be followed religiously. I
would like to tell you to start following this recommendation now with all work done in ASP.NET 2.0, but the DataGrid has not been refactored to keep its behavioral state in control state. Fortunately, the new GridView is the logical successor to the DataGrid and it uses control state properly, as do the new versions of the TextBox and DropDownList controls.

No comments: