What is the difference between datagrid and gridview?

Showing Answers 1 - 19 of 19 Answers

karna

  • Sep 11th, 2007
 

In data grid pageing, inserting, updateing, deleteing are implementing by coding.

In data view automatically genaretes the inserting, updateing, deleting without user writing the code.

In data grid no image templete column, whereas dataview have image templete column.  

  Was this answer useful?  Yes

ninethsense

  • Nov 19th, 2007
 

Simple answer will be :
DataGrid is OLD and GridView is NEW!

GridView is introduced in ASP.NET 2.x (Visual Studio 2005). But still DataGrid is available there for compatibility.

Datagrid is used in windows application and gridview is used in web
and in datagrid we cannot write the code for datagrid properties where as for grid view w ecan write the code like template column item template etc this will not be done in datagrid

  Was this answer useful?  Yes

softwareguy

  • Mar 14th, 2008
 

Datagrid can be used in web also, the major differences are regarding the sorting, inserting which has been stated already.

DataGrid can also be used in windows applications, but in earlier versions where datagrids were the only source i.e. ASP.NET 1.1, contains many issues and thus many people used to use XPTables instead of grid in windows applications.

Thanks
Ashish Jain

tinku4mca

  • Jan 20th, 2009
 

DataGrid Support filtering but gridview doesn't support filtering
Gridview insert, delete, update operation can be performed automatically but in datagrid we can't.

  Was this answer useful?  Yes

hashirhimt

  • Mar 30th, 2009
 

GridView is latest version of DataGrid. GridView is formated control while DataGrid is unformated control. In GridView no coding require for sorting, editing, deleting. Hence we can say GridView has some extra feature.

  Was this answer useful?  Yes

    In Grid View we have -

  • 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.

  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