get column in Dataset

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I ve loaded my database into a dataset.
I want to get the string in one of the column name "MyCategory".
Some of my rows have the same category as the others.
For example, there are some in CategoryA, some in CategoryB...etc..

Let's say i do not know the name of the Category in the database, i just
want to store the different name in column "MyCategory" into a string array.

so that myStringArray will have something like [CategoryA,CategoryB....] but
none of them are repeated inside the array....if u know what i mean..

How should I do that?

many thanks,
jon
 
Thanks Cor.

but is there any other method apart from using select distinct?
because i have my database in a table already.
thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top