What is the difference between the datagrid and grid view ?

Showing Answers 1 - 1 of 1 Answers

vaibhav Tyagi

  • Sep 26th, 2007
 

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.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions