Saturday 19 October 2013

Difference between GridView and DataGrid in Asp.Net.

GridView and DataGrid are data-bound control used to display and modify data from Asp.Net web form/appliaction.These control also conatin other asp.net control like label,textbox,checkbox,radio-
Button ,dropdown, image-control etc.

Difference Between GridView and DataGrid:-

         GridView
           DataGrid
1.It was introduced in Asp.Net 2.0.
1.It was introduced in Asp.Net1.0.
2. It support built-in paging and sorting.
2.It does not support built-in paging and sorting. For sorting you need to handle SortCommand and for paging you need to hanle PageIndexChanged command.
3.It support auto format or style feature.
3. This feature is not available in this.
4. Performance is slow as compared to datagrid.
4. Performance is fast as compared to GridView.

No comments:

Post a Comment

Note: only a member of this blog may post a comment.