Datagrid FindControl in Footer

Discussion in 'ASP .Net' started by Dave, Nov 14, 2003.

  1. Dave

    Dave Guest

    Hi all,

    Does anyone know how to find a control in a DataGrid
    Footer by using DataGrid.FindControl etc?
     
    Dave, Nov 14, 2003
    #1
    1. Advertising

  2. Dave

    alex bowers Guest

    In the DataGrid_ItemCreated event that takes an argument
    of type DataGridItemArgs e, you can use
    e.Item.Cells[n].Controls[n] to refer to the control.
    You can also use the FindControl method on one of these
    collections but I tend to use the former technique.

    alex

    >-----Original Message-----
    >Hi all,
    >
    >Does anyone know how to find a control in a DataGrid
    >Footer by using DataGrid.FindControl etc?
    >
    >
    >
    >.
    >
     
    alex bowers, Nov 14, 2003
    #2
    1. Advertising

  3. Dave

    Dave Guest

    Thank you, that has sorted my problem

    >-----Original Message-----
    >In the DataGrid_ItemCreated event that takes an argument
    >of type DataGridItemArgs e, you can use
    >e.Item.Cells[n].Controls[n] to refer to the control.
    >You can also use the FindControl method on one of these
    >collections but I tend to use the former technique.
    >
    >alex
    >
    >>-----Original Message-----
    >>Hi all,
    >>
    >>Does anyone know how to find a control in a DataGrid
    >>Footer by using DataGrid.FindControl etc?
    >>
    >>
    >>
    >>.
    >>

    >.
    >
     
    Dave, Nov 14, 2003
    #3
    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. Ruby

    findcontrol in datagrid footer

    Ruby, Jan 28, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    1,815
  2. Replies:
    2
    Views:
    3,090
    KevD711
    Apr 26, 2007
  3. Andrew Robinson

    FindControl in GridView Footer

    Andrew Robinson, Apr 24, 2007, in forum: ASP .Net
    Replies:
    1
    Views:
    1,011
    Andrew Robinson
    Apr 25, 2007
  4. Henrik
    Replies:
    1
    Views:
    427
    Ken Cox [Microsoft MVP]
    Jul 6, 2006
  5. Replies:
    0
    Views:
    157
Loading...

Share This Page