Accessing datagrid footer

Discussion in 'ASP .Net Datagrid Control' started by Mikie, Oct 9, 2003.

  1. Mikie

    Mikie Guest

    There is probably a simple answer to this question - using code
    behind, in my a grid itemcommand event I need to reference cells in
    the footer row. The footer is not bound to any fields and this
    apparently keeps me from being able to reference it using the
    grid.items collection.

    My process flow is

    user clicks a button control that's in a cell in a grid row. In the
    ItemCommand event code, I want to take the values from several cells
    in the clicked row and move them to cells in the footer for editing.

    I know how to get the values from the clicked row, but I don't know
    how to get a reference to the footer inside the ItemCommand event.

    I've been beating my brains out on this one. Any comments or
    suggestions will be much appreciated.
     
    Mikie, Oct 9, 2003
    #1
    1. Advertising

  2. If you try to access through grid.items it wont give you access to footer
    item. To access footer item, you need to access it through
    grid.controls(0).controls.

    --
    Saravana
    Microsoft MVP - ASP.NET
    www.extremeexperts.com



    "Mikie" <> wrote in message
    news:...
    > There is probably a simple answer to this question - using code
    > behind, in my a grid itemcommand event I need to reference cells in
    > the footer row. The footer is not bound to any fields and this
    > apparently keeps me from being able to reference it using the
    > grid.items collection.
    >
    > My process flow is
    >
    > user clicks a button control that's in a cell in a grid row. In the
    > ItemCommand event code, I want to take the values from several cells
    > in the clicked row and move them to cells in the footer for editing.
    >
    > I know how to get the values from the clicked row, but I don't know
    > how to get a reference to the footer inside the ItemCommand event.
    >
    > I've been beating my brains out on this one. Any comments or
    > suggestions will be much appreciated.
     
    Saravana [MVP], Oct 9, 2003
    #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. Paul Maidment
    Replies:
    1
    Views:
    4,413
    Nick Berardi
    Aug 7, 2003
  2. Jim Heavey

    Accessing a Footer

    Jim Heavey, Nov 18, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    405
    Saravana [MVP]
    Nov 21, 2003
  3. DMC
    Replies:
    1
    Views:
    420
    Niraj Ranka
    Jan 16, 2007
  4. Replies:
    3
    Views:
    990
  5. Henrik
    Replies:
    1
    Views:
    443
    Ken Cox [Microsoft MVP]
    Jul 6, 2006
Loading...

Share This Page