Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

dropdownlist bind

$
0
0

just want to know which one is faster :

provide a datareader to dropdownlist  as datasource or looping through datareader and add items to the list ?

suppose we have DropDownList name = ddlx

ddlx.datasource = datareader or

while(reader.read())

{

ddlx.items.add(new itemlist("","");

{

which one is faster and why please ?


Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>