Questions about the DataSet/DataTable

  • Thread starter Thread starter Timothy Parez
  • Start date Start date
T

Timothy Parez

Hello,

I have a DataSet with lots of data in it,
there is no database just the DataSet.

In the DataTable contained by the DataSet
there is a field Category. I would like to get the different Categories
out of that DataSet, so no duplicates.

With SQL this would be very easy,
SELECT DISTINCT or Group By should do the job,
but I don't suppose you can run SQL against a dataset can you ?

Is there another way to select distinct values from a column in a
DataTable ?

If it held

A
B
B
A
C
E
F
A
G
F
G
H

I would only like to get
A
B
C
E
F
G
H
back.

Thnx.
 

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