Iterate through ArrayList using an another ArrayList

Discussion in 'ASP .Net' started by Saravanan Rathinavelu, Aug 16, 2003.

  1. 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-
     
    Saravanan Rathinavelu, Aug 16, 2003
    #1
    1. Advertising

  2. Saravanan Rathinavelu

    Natty Gur Guest

    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!
     
    Natty Gur, Aug 17, 2003
    #2
    1. Advertising

  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!
    >.
    >
     
    Saravanan Rathinavelu, Aug 19, 2003
    #3
  4. Saravanan Rathinavelu

    Natty Gur Guest

    Natty Gur, Aug 19, 2003
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?SmltIEhlYXZleQ==?=

    Iterate over a ArrayList

    =?Utf-8?B?SmltIEhlYXZleQ==?=, May 26, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    3,811
    Alex Papadimoulis
    May 26, 2004
  2. COHENMARVIN
    Replies:
    3
    Views:
    16,440
    nzolotar
    May 23, 2008
  3. Gogo
    Replies:
    1
    Views:
    2,107
    Sudsy
    Sep 4, 2003
  4. runescience
    Replies:
    0
    Views:
    1,464
    runescience
    Feb 9, 2006
  5. John
    Replies:
    4
    Views:
    926
    RedGrittyBrick
    Apr 1, 2008
Loading...

Share This Page