datagrid footer

Discussion in 'ASP .Net Datagrid Control' started by powerranger, Sep 12, 2003.

  1. powerranger

    powerranger Guest

    I'd like to know how to add a text box in the datagrid footer at runtime. Thanks.
     
    powerranger, Sep 12, 2003
    #1
    1. Advertising

  2. powerranger

    Prasad Guest

    In the ItemCreated Event you can do it like this :

    if(e.Item.ItemType == ListItemType.Footer)
    {
    e.Item.Cell[0].Controls.Add(new TextBox())
    }

    HTH
    Prasad

    "powerranger" <> wrote in message
    news:...
    > I'd like to know how to add a text box in the datagrid footer at runtime.

    Thanks.
     
    Prasad, Sep 13, 2003
    #2
    1. Advertising

  3. powerranger

    Saravana Guest

    Saravana, Sep 13, 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. Roger Moore
    Replies:
    0
    Views:
    754
    Roger Moore
    Jul 7, 2003
  2. Darren Spooner

    remove a control from a datagrid footer

    Darren Spooner, Oct 14, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    355
    Alvin Bruney
    Oct 15, 2003
  3. Dave

    Datagrid FindControl in Footer

    Dave, Nov 14, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    3,079
  4. Jim Heavey

    DataGrid Footer - DropDownBox

    Jim Heavey, Nov 18, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    383
    George Durzi
    Nov 18, 2003
  5. Henrik
    Replies:
    1
    Views:
    442
    Ken Cox [Microsoft MVP]
    Jul 6, 2006
Loading...

Share This Page