P
Praveen
I am creating a custom dropdownList control. The control
exposes a property named "DataSource".
Now the DataSource can be anything like a DataTable,
ArrayList, Array etc. While adding the Items to the
DropDownList Control how to handle all these different
DataSources. I have read it somewhere that it can be done
through IEnumerable.
I have add the ItemValue and ItemText to the dropdown. But
how to loop through a IEnumerable?
Any suggestion are appreciated.
Thanks
Modi.net
exposes a property named "DataSource".
Now the DataSource can be anything like a DataTable,
ArrayList, Array etc. While adding the Items to the
DropDownList Control how to handle all these different
DataSources. I have read it somewhere that it can be done
through IEnumerable.
I have add the ItemValue and ItemText to the dropdown. But
how to loop through a IEnumerable?
Any suggestion are appreciated.
Thanks
Modi.net