开发者

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

开发者 https://www.devze.com 2022-12-29 09:07 出处:网络
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 (

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号