C# dataset table column into an array
Hi, i need to populate an array[] with dataset table row or a table column
in my table there is "userId" and "userName" column ... i have this in dataset but i want to populate an array with "userName" in a listbox but not the "userId" ..
any suggestions or sample code would be helpful
thanks
Answers (2)
0
Thanks seema i will try it
0
Hi
Hashtable can be used .
hashtable ht= new hashtable();
ht,add("userid",username
Hope so It may help you.