GridView and DataGrid Data-bound controls are used to display and modify data in your Asp.net web application.
GridView:-
- It was introduced with Asp.Net 2.0.
- Built-in supports for Paging and Sorting.
- Built-in supports for Update and Delete operations.
- Supports auto format or style features.
- Performance is slow as compared to DataGrid.
DataGrid:-
- It was introduced with Asp.Net 1.0
- For sorting you need to handle SortCommand event and rebind grid required and for paging you need to handle the PageIndexChanged event and rebind grid required.
- Need to write code for implementing Update and Delete operations.
- Not Supports auto format or style features.
- Performance is fast as compared to GridView.
No comments:
Post a Comment