If you can find unique records in your datatable using a loop, then you
obviously have your search criteria.

You can call the data table's Select method to return an arraylist of
DataRow that match your search criteria.

 

C[#]

DataRow[] dr = myDataTable.Select("id = 4","Name DESC);

 

The Select method takes 2 params - the search criteria (string), and the
ordering criteria (string).

So, the above code will return an arraylist of datarows that have an id
value of 4, and order them by the column Name, descending.

 

Doug Wilson | Lead Applications Developer | iX Webhouse

iX Headoffice | Umhlanga, South Africa | Mobile: +2783 6412944

Tel: +2731 5669250 | Fax: +2731 5669260 | Email: mailto:[EMAIL PROTECTED]

  _____  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 24 May 2004 09:52 AM
To: [EMAIL PROTECTED]
Subject: [AspNetAnyQuestionIsOk] Unique Records in a DataSet

 

Hi All,

Can anybody help me to find out the unique records in a DataSet quickly?
May be by using some property setting or method calling?
I know how to retreive unique records by using a loop.

Thanks in advance.

Mohan

Disclaimer:
The contents of this e-mail are strictly confidential and may be
privileged.  It represents solely the views of the author and is meant only
for the stated recipient/s.
Any unauthorized distribution is strictly prohibited.  F J Benjamin Group
or its subsidiaries will not accept responsibility for any damage caused by
this e-mail or
attachment/s (if any), which have been checked for viruses.

Please visit our website http://www.fjbenjamin.com






Yahoo! Groups Sponsor



ADVERTISEMENT
 
<http://rd.yahoo.com/SIG=129q2s146/M=295196.4901138.6071305.3001176/D=groups
/S=1705006764:HM/EXP=1085471661/A=2128215/R=0/SIG=10se96mf6/*http:/companion
.yahoo.com> click here


 
<http://us.adserver.yahoo.com/l?M=295196.4901138.6071305.3001176/D=groups/S=
:HM/A=2128215/rand=399216459> 

 

  _____  

Yahoo! Groups Links

*       To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
  
*       To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]
e> 
  
*       Your use of Yahoo! Groups is subject to the Yahoo!
<http://docs.yahoo.com/info/terms/>  Terms of Service. 



[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/saFolB/TM
---------------------------------------------------------------------~->

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
     [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/
 

Reply via email to