views:

59

answers:

1

hi

ASP.NET: Which strategy is better for populating a gridview? filling a Data Table and bind it or using a data reader ? Which one has a better performance?

+2  A: 

A datareader is always faster (since the datatable uses it to fill itself also), but it's trivial.. just use what'll be the fastest to develop.

Chris van de Steeg
+1 for realism.
Chris
@www.chrisvandesteeg.nl : thank you, but how do you know that data table uses it (data reader) to fill itself?
odiseh