odiseh
odiseh

Reputation: 26537

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

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?

Upvotes: 0

Views: 166

Answers (1)

Chris van de Steeg
Chris van de Steeg

Reputation: 804

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.

Upvotes: 2

Related Questions