PC Review


Reply
Thread Tools Rate Thread

DataTable.select method

 
 
doug
Guest
Posts: n/a
 
      17th Dec 2003
I would like to do a select distinct on a fieldname in a
dataset. Is this possible using the DataTable.Select
Method?

If so do you have an example?

I can use the method to do things like this.... very
easily, but can't find a way to select distinct.

Dim dr As DataRow() = ds.Tables(0).Select("fieldname
= 'value' ")

Thanks

 
Reply With Quote
 
 
 
 
William Ryan
Guest
Posts: n/a
 
      17th Dec 2003
http://support.microsoft.com/default...en-us%3B325684
"doug" <(E-Mail Removed)> wrote in message
news:00d001c3c4f6$9e00b030$(E-Mail Removed)...
> I would like to do a select distinct on a fieldname in a
> dataset. Is this possible using the DataTable.Select
> Method?
>
> If so do you have an example?
>
> I can use the method to do things like this.... very
> easily, but can't find a way to select distinct.
>
> Dim dr As DataRow() = ds.Tables(0).Select("fieldname
> = 'value' ")
>
> Thanks
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Implementing SELECT DISTINCT with DataTable.Select method Andrea Caldarone Microsoft ADO .NET 2 30th Jan 2007 09:28 AM
DataTable.Select method in .NET 2.0 maciu Microsoft ADO .NET 3 26th Oct 2005 03:55 PM
Retrieving datarows using DataTable.Select method and adding it to new DataTable C.Anand via DotNetMonster.com Microsoft ADO .NET 4 4th Apr 2005 05:21 PM
DataTable Select method Mandar Patankar via .NET 247 Microsoft ADO .NET 1 30th Mar 2005 11:47 PM
DataTable.Select Method csl Microsoft ADO .NET 1 25th Feb 2005 03:37 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:20 PM.