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 ?
Answered By
techphil
0 points
N/A
#83239
What is the difference between datagrid and gridview in asp.net 2 ?
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
What is the difference between datagrid and gridview in asp.net 2 ?
Â
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.