468,253 Members | 1,302 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,253 developers. It's quick & easy.

Iterate through ArrayList using an another ArrayList

Let's say there is an ArrayList(s) A and B.
A has 1 column and 5 rows.
B has 10 columns and 10 rows, where column1 on both being
the same with additional rows in B.

Using ArrayList A need to loop through B and pull only
those exist on both ie., 5 rows out of B with 10 columns
and assign it to an another ArrayList say C. Later i can
use C to bind to a DataGrid as well as give an option to
bind the complete B to the DataGrid.

Could someone help me figuring out how to get this done.
thanks
-Saravanan.R-
Nov 17 '05 #1
5 1332
Hi,

you can use BinarySearch with IComparer.

Natty Gur, CTO
Dao2Com Ltd.
34th Elkalay st. Raanana
Israel , 43000
Phone Numbers:
Office: +972-(0)9-7740261
Fax: +972-(0)9-7740261
Mobile: +972-(0)58-888377
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #2
please give me example of using BinarySearch with
IComparer.
-----Original Message-----
Hi,

you can use BinarySearch with IComparer.

Natty Gur, CTO
Dao2Com Ltd.
34th Elkalay st. Raanana
Israel , 43000
Phone Numbers:
Office: +972-(0)9-7740261
Fax: +972-(0)9-7740261
Mobile: +972-(0)58-888377
*** Sent via Developersdex http://www.developersdex.com ***Don't just participate in USENET...get rewarded for it!
.

Nov 17 '05 #3
please give me example of using BinarySearch with
IComparer.
-----Original Message-----
Hi,

you can use BinarySearch with IComparer.

Natty Gur, CTO
Dao2Com Ltd.
34th Elkalay st. Raanana
Israel , 43000
Phone Numbers:
Office: +972-(0)9-7740261
Fax: +972-(0)9-7740261
Mobile: +972-(0)58-888377
*** Sent via Developersdex http://www.developersdex.com ***Don't just participate in USENET...get rewarded for it!
.

Nov 17 '05 #4
OK,

http://aspnet.4guysfromrolla.com/art...10602-1.2.aspx

Natty Gur, CTO
Dao2Com Ltd.
34th Elkalay st. Raanana
Israel , 43000
Phone Numbers:
Office: +972-(0)9-7740261
Fax: +972-(0)9-7740261
Mobile: +972-(0)58-888377
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #5
OK,

http://aspnet.4guysfromrolla.com/art...10602-1.2.aspx

Natty Gur, CTO
Dao2Com Ltd.
34th Elkalay st. Raanana
Israel , 43000
Phone Numbers:
Office: +972-(0)9-7740261
Fax: +972-(0)9-7740261
Mobile: +972-(0)58-888377
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Gustaf Liljegren | last post: by
1 post views Thread by vimal patel via DotNetMonster.com | last post: by
reply views Thread by kermitthefrogpy | last post: by
reply views Thread by zattat | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.