.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 read开发者_高级运维er ? Which one has a better performance?
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.
精彩评论