Geeks With Blogs

WinToolZone - Spelunking Microsoft Technologies
I work as a developer on the Common Language Runtime (CLR) team, specifically in the areas of exception handling and CLR hosting.

The information in this weblog is provided "AS IS" with no warranties, and confers no rights. This weblog does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion. Inappropriate comments will be deleted at the authors discretion. All code samples are provided "AS IS" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.

Inside and Out... An attempt to understand technology better...

When we say that in ASP.NET 2.0, we are actually reducing the amount of code the developer writes, we sure do mean it. And what could be a better example than the good, old DataGrid control.

Rechristened as the GridView, all you are expected to do now is:

  • Drag and drop the control in design view
  • Courtesy the smart tags, add a data source (existing or new; and there are tons of varieties of the same)
  • Check few checkboxes to tell if you need support for paging, row-selection, editing, deletion

And you are done! Just execute your application and the data is fetched for you;  it is paged for you; row will be selected for you; you could even edit and update, or delete a row.

And all this is without writing a single line of code! Can you beat that?

Posted on Wednesday, May 12, 2004 4:10 PM .NET Framework | Back to top

Comments on this post: GridView - Falling in love with it...

# re: GridView - Falling in love with it...
Requesting Gravatar...
Sounds excellent =)

I assume this is the same DataGrid that will be in Whidbey's version of the framework / "Windows Forms Controls"?
Left by Brandon Paddock on May 12, 2004 10:47 PM

# re: GridView - Falling in love with it...
Requesting Gravatar...
In whidbey WinForms, the grid control has been rechristened as the DataGridView. The GridView control I am talking about is the one that has replaced the DataGrid in ASP.NET.
Left by Gaurav Khanna on May 13, 2004 6:25 AM

# Ah, ok
Requesting Gravatar...
They both look to have been improved markedly, thus my theory that they were being designed to offer the same functionality (for their respective environments).
Left by Brandon Paddock on May 13, 2004 3:46 PM

# re: GridView - Falling in love with it...
Requesting Gravatar...
GridView in ASP .Net do not provide all the functionality that is available in DataGridView in .Net FrameWork. Features missing are e.g "Column Reordering" and events on cells.
Would these be there for ASP 2.0 Beta 2 GridView?
Left by Shafia on Apr 01, 2005 11:35 AM

Your comment:
 (will show your gravatar)

Copyright © Gaurav Khanna | Powered by: