Answers

Nov 07, 2007 - 03:23 AM
Hey, dust!
Hope you've been doing well...
The short answer is that the gridview has built-in control for sorting and paging where the datagrid required three poodles, a ring of fire and the sacrifice of a small child to get it to do those "routine" tasks.
For a more detailed accounting of the differences, take a look at http://msdn.microsoft.com/msdnmag/iss...
From personal experience, the gridview is more flexible, but it still carries a lot of "weight" as a trade-off for that flexibility. I've been doing a lot more with repeaters because they're smaller in overhead and still offer a good portion of the features a gridview has...unless I'm going to do sorting or paging. Then, mostly for the ease with the built-in features, I'm using the gridview.
Hope this helps!
Ric
Hope you've been doing well...
The short answer is that the gridview has built-in control for sorting and paging where the datagrid required three poodles, a ring of fire and the sacrifice of a small child to get it to do those "routine" tasks.
For a more detailed accounting of the differences, take a look at http://msdn.microsoft.com/msdnmag/iss...
From personal experience, the gridview is more flexible, but it still carries a lot of "weight" as a trade-off for that flexibility. I've been doing a lot more with repeaters because they're smaller in overhead and still offer a good portion of the features a gridview has...unless I'm going to do sorting or paging. Then, mostly for the ease with the built-in features, I'm using the gridview.
Hope this helps!
Ric

Nov 08, 2007 - 07:39 AM
thanks for your input Ric, i can relate well to the ring of fire :)
i somehow thought there was "more" to it, but then again, having sorting and paging integrated and better than the datagrid is a good deal also...
here's the points...
i somehow thought there was "more" to it, but then again, having sorting and paging integrated and better than the datagrid is a good deal also...
here's the points...

Feb 07, 2010 - 07:51 PM
1.Code requires to handle the SortCommand event and rebind grid required.
2.Code requires to handle the PageIndexChanged.
3.Need extensive code for update operation on data.
4.When compared to gridview less events supported.
GridView..
1.No code required.
2.No code required for PageIndexChanged.
3.Needs little code for update operation.
4.GridView supports events fired before and after database updates
2.Code requires to handle the PageIndexChanged.
3.Need extensive code for update operation on data.
4.When compared to gridview less events supported.
GridView..
1.No code required.
2.No code required for PageIndexChanged.
3.Needs little code for update operation.
4.GridView supports events fired before and after database updates

Dec 28, 2010 - 08:37 PM
I really can’t understand why so many people complain about PC start-up slow problems, you only need a computer cleaner to handle all the problems, such as tuneup360.

Dec 14, 2014 - 09:32 PM
Gridview is introduced with asp.net 2.0 and datagrid is introduced with asp.net 1.0.They both have diffrent event models and custom paging support.Gridview supports auto foramat and style features otherwise datagrid can't support auto format.
Add New Comment