Using DataView or Select expression on a DataTable to filter distinct records

J

John Walsch

From the brief research that I have done, nothing is mentioned about
being able to filter out distinct records from a DataTable using
DataView or
or using the select method like: someDataTable.Select() =
someExpression.

Because I need my DataTable to contain all the records, but I only
want to show distinct records, I have a for loop and some register
variables that test whether current record is distinct or not. This
method works the way I want to, but is there a better way to do it
using a DataView or the select method as mentioned above?

Thank You,
John
 

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

Top