differnence b/w datagrid and gridview

Posted by Ppolisetty under ASP.NET on 7/20/2008 | Views : 2444 | Status : [Member] | Replies : 4
Main difference b/w

Gridview
and
datagrid




Responses

Posted by: Bubbly on: 2/20/2010 [Member] Bronze

Up
0
Down
Hello,

check this link

http://www.dotnetspider.com/resources/25769-Difference-between-DataGrid-Gridview.aspx

++
Thanks & Regards,
Deepika

Ppolisetty, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sabarimahesh on: 4/3/2012 [Member] Bronze | Points: 25

Up
0
Down
Hi
hi
GRID VIEW
The Gridview is the most used control to display data in a tabular format.
By default it supports major features like sorting, paging.
However it does not support multiple sorting.
DATAGRID 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.

DATAGRID
In ASP.NET 2.0, the DataGrid control has been enhanced to support common control features
such as themes and personalization. In addition, the new DataGrid control can be populated
by a data source control. Remember, though, that a DataGrid can only bind to a data source
object for the purpose of reading data. To actually modify the underlying data source,
some user-defined code is still required.
GRIDVIEW
In contrast, the GridView control takes advantage
of the capabilities of the underlying data source and automatically deletes or updates records.
Note that the GridView control also supports the classic binding mechanism based on the
DataSource property and the DataBind method. Although fully supported,
this programming practice is discouraged.
Refer
http://24x7aspnet.blogspot.in/2009/06/feature-difference-between.html /

Life is a Race
Thanks & Regards
By
Sabari Mahesh P M

Ppolisetty, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Raja on: 7/20/2008 [Member] Starter

Up
0
Down
GridView is the new data control added into ASP.NET 2.0+ version and it has built in capability of sorting, paiging etc if you attach this with DataSource Controls.

This have
#. 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.


DataGrid is the control that were available in ASP.NET 1.0 and 1.1 version, it has some drawbacks that has been removed and formed as GridView in later version.

Both controls are used to list the data in tabular format.

For more in-depth knowledge, visit http://msdn.microsoft.com/en-us/library/05yye6k9.aspx

Thanks

Regards,
Raja, USA

Ppolisetty, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Majith on: 7/22/2008 [Member] Starter

Up
0
Down
Hi,

To understand why we introduce the new GridView control while DataGrid is
doing pretty good, we need to address two points:
1) While DataGrid is one of the most powerful controls in ASP.NET 1.x, it
requires too much work for mundane tasks such as sorting, paging, sorting,
and deleting data.
2) ASP.NET 2.0 enhances the data-binding architecture, introducing a new
family of components--the data source objects, which act as a bridge
between data-bound controls and ADO.NET objects. The familiar DataGrid
control is still supported, but it doesn't take full advantage of the
specific capabilities of data source components.

You can find more information at here:

#GridView: Move Over DataGrid, There's a New Grid in Town!
http://msdn.microsoft.com/msdnmag/is...4/08/GridView/

In my opinion, if your purpose is to manually load and retrieve data from
cells and controls inside the cells, I would recommend you still use the
DataGrid control, it's still supported in ASP.NET 2.0. If you want to try
the new and powerful data-binding feature of data source objects (such as
SqlDataSource, ObjectDataSource), I would recommend you use the GridView
control.

Hope this helps.

Regards,
MAJITH.B


Ppolisetty, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response