How to get distinct list of a column from a DataTable

  • Thread starter Thread starter Yi Jiang
  • Start date Start date
Y

Yi Jiang

Hi;

I am trying to do some calc for a DataTable populated from database. The
DataTable has composite key e.g.ID, Date.

My question is:

What is the best and effective way to get the distinct list of ID
from DataTable just like SQL "select distinct ID from table"?


Thank you for your help!

Yi
 

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