Skip to content

Dataset into Array

George

Asked Mar 22, 2006, 9:31 PM EST1 answer
Share
LinkedInX
Hi, How do a read the contents of a DataSet into an array in C#. I am a beginner in C# and could do with a solution asap. Thanks :)

1 Answer

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

  • 0
    You can do this by accessing the Table object in the dataset and then by iterating through the records in that table. In this way you can store the values of dataset into the arraylist. I have given a sample code below. "ArrayList arr = new ArrayList(); for(int i=0;i"
    0