Difference Between GridView and DataGrid in Asp.Net C#

Difference Between GridView and DataGrid

Gridview was introduced with Asp.Net 2.0.
DataGrid  was introduced with
 Asp.Net 1.0.
GridView Built-in Supports for
  Paging and Sorting.
DataGrid  For sorting you need to
1.SortCommand event
2.ReBind Grid Required
3.for paging
need to handle the
PageIndexChanged event
GridView Built-in Supports for
Update and Delete operations.
DataGrid Need to write code for
 Update and Delete operations.
GridView Supports auto
Format or Style features.
DataGrid This features is Not
GridView Performance
 is Slower than DataGrid
DataGrid Performance is
  Faster  than GridView.


Post a Comment