Difference Between GridView and DataGrid in Asp.Net C#

Difference Between GridView and DataGrid


             Gridview
                  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
 handle
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
 implementing
 Update and Delete operations.
GridView Supports auto
Format or Style features.
DataGrid This features is Not
supported.
GridView Performance
 is Slower than DataGrid
DataGrid Performance is
  Faster  than GridView.




0 comments:

Post a Comment