What is the difference between datagrid and gridview in asp.net 2 ?

Asked By 0 points N/A Posted on -
qa-featured

I am looking for a quick overview of what enhancements the gridview brings to me as a asp.net developer being used to used the datagrid. Is the conversion easy ? What extras do we get with that ?

SHARE
Best Answer by Toni Linscomb
Answered By 0 points N/A #83239

What is the difference between datagrid and gridview in asp.net 2 ?

qa-featured

The difference between is that the gridview has built-in control for common operations like sorting, paging, editing and even deleting data. While datagrid required three poodles, a ring of fire and the sacrifice of a small child to get it to do those "routine" tasks. Datagid control can increase actions when the user clicks to save or cancel changes, it doesn't offer much more than that. For more information visit this site Download Link1

Best Answer
Best Answer
Answered By 0 points N/A #83240

What is the difference between datagrid and gridview in asp.net 2 ?

qa-featured

 

Features in Datagrid.
 
1. You need to write code to handle SortCommand event and need to rebind the grid.
 
2. Need to write code to handle PageIndexChanged event.
 
3. Need to write massive amount of code for data update related operations.
 
4. Number of events supported is less when compared to Gridview.
 
Features in GridView.
 
1. You can perform every operation with using code.
 
2. PageIndexChanged event does not require any code.
 
3. Less code is required for update related operations.
 
4. Supports events fired before and after the database updates are done.

Login/Register to Answer

Related Questions