Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#
What is the difference between gridview and datagrid in asp.net
Posted 21-May-12 22:54pm
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

You can get many link when you search on google for this. One of them is: http://msdn.microsoft.com/en-us/library/05yye6k9.aspx[^]
  Permalink  
Comments
sravani.v at 22-May-12 5:27am
   
My 5!
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

DataGrid was an ASP.NET 1.1 control, still supported.
GridView arrived in 2.0, made certain tasks simpler added different databinding features:
 
This link has a comparison of DataGrid and GridView features:
DataGrid & GridView[^]
 
The GridView control also has a number of new features and advantages over the DataGrid control, which include:
 
-Richer design-time capabilities.
-Improved data source binding capabilities.
-Automatic handling of sorting, paging, updates, and deletes.
-Additional column types and design-time column operations.
-A Customized pager user interface (UI) with the PagerTemplate property.
 
Differences include:
-Different custom-paging support.
-Different event models.
 
Some more:
Comparing the GridView and DataGrid Web Server Controls[^]
 
Get the similar discussion:
Click here[^]
  Permalink  
v2
Comments
sravani.v at 22-May-12 5:28am
   
My 5!
Prasad_Kulkarni at 22-May-12 5:30am
   
Thank you Sravani!
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

Both the DataGrid and GridView controls are derived from the WebControl class. Although it has a similar object model to that of the DataGrid control, the GridView control also has a number of new features and advantages over the DataGrid control, which include:
 
* Richer design-time capabilities.
* Improved data source binding capabilities.
* Automatic handling of sorting, paging, updates, and deletes.
* Additional column types and design-time column operations.
* A Customized pager user interface (UI) with the PagerTemplate property.
 
Differences between the GridView control and the DataGrid control include:
 
* Different custom-paging support.
* Different event models.
 
for more detail refer below link :
http://msdn.microsoft.com/en-us/library/05yye6k9.aspx[^]
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

GridView can bulid pages on mobile devices
 
DataGrid in 1.x doesn't supports the themes however in 2.0 it perform themes.
 
The DataGrid in version 2.0 can also render adaptively,
 
GridView supports the classic bindingbased on the DataSource property.
 
GridView provides the option for paging ,sorting in easy click of a button however datagrid
required some coding
 

for more details http://www.dotnetfunda.com/articles/article138.aspx[^]
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 499
1 Nirav Prabtani 338
2 OriginalGriff 175
3 _Amy 165
4 Abhinav S 160
0 OriginalGriff 7,715
1 Sergey Alexandrovich Kryukov 6,911
2 Maciej Los 3,954
3 Peter Leow 3,698
4 CHill60 2,742


Advertise | Privacy | Mobile
Web01 | 2.8.140721.1 | Last Updated 22 May 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100