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
C# dataset table column into an array
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Seema3 pointsPosted May 6, 2008, 3:29 AM EDT
Hi
Hashtable can be used .
hashtable ht= new hashtable();
ht,add("userid",username
Hope so It may help you.
1 short reply
del ete6 pointsPosted May 6, 2008, 7:45 PM EDT