Skip to content

C# dataset table column into an array

del ete

Asked May 3, 2008, 5:23 PM EDT2 answers
Share
LinkedInX
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

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0

    Hi

    Hashtable can be used .

    hashtable ht= new hashtable();

    ht,add("userid",username

    Hope so It may help you.

    0
  • 1 short reply
    • 0
      Thanks seema i will try it
      0