Loop through multiple Datagrids on page

Discussion in 'ASP .Net Datagrid Control' started by chuckdfoster, Jul 1, 2005.

  1. chuckdfoster

    chuckdfoster Guest

    I have 4 datagrids (dg1, dg2, dg3, and dg4) on a webpage. I know how to
    loop through the rows in each individual datagrid, but I need to loop
    through all 4. Is there a way to loop through the controls on the page,
    determine if it is a datagrid or not, then I can continue my loops? I have
    tried using Page.Controls, but that only gives me the "literals." Any
    suggestions? Code Samples would be great help.

    Thanks in advance for any shared knowledge!
    --
    Chuck Foster
    Programmer Analyst
    Eclipsys Corporation - St. Vincent Health System
    chuckdfoster, Jul 1, 2005
    #1
    1. Advertising

  2. chuckdfoster

    Teemu Keiski Guest

    Teemu Keiski, Jul 1, 2005
    #2
    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. Steve Chatham
    Replies:
    0
    Views:
    480
    Steve Chatham
    Feb 24, 2004
  2. chuckdfoster

    Loop through multiple Datagrids on page

    chuckdfoster, Jul 1, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    494
    Teemu Keiski
    Jul 1, 2005
  3. Dennis Davitt

    Displaying Multiple Datagrids on one page

    Dennis Davitt, Dec 30, 2003, in forum: ASP .Net Datagrid Control
    Replies:
    1
    Views:
    352
    Charlie Nilsson [MSFT]
    Dec 30, 2003
  4. TJ

    multiple datagrids on same page paging broken

    TJ, Jun 15, 2006, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    139
    Walter Wang [MSFT]
    Jun 16, 2006
  5. Isaac Won
    Replies:
    9
    Views:
    349
    Ulrich Eckhardt
    Mar 4, 2013
Loading...

Share This Page