Datagrid or Gridview?

Jay1b

Contributor
Joined
Aug 3, 2003
Messages
640
Location
Kent, Uk.
Could someone please tell me what it the best to use? At the moment i just know how to do what i want in a datagrid, but i'm sure i could eventually figure out how to do it in either.

What is the better control to use in most cases? For example is the datagrid in the process of being phased out?

Thanks
Jay.
 
The GridView is much better, and takes advantage of new mechanisms like ControlState and script callbacks. The names of properties and types have changed, but the GridView has an equivalent of everything that the DataGrid has - I was able to migrate a .NET 1.1 project using DataGrids to a .NET 2.0 project using GridViews with very little difficulty.

I haven't seen anything stating specifically that the DataGrid will be removed from ASP.NET, but as far as I know the ASP.NET team didn't make any changes to the DataGrid because it was just not worth it.
 
Back
Top