Put a control in a Cell of DataGrid

Discussion in 'ASP .Net Datagrid Control' started by Franck, Nov 12, 2003.

  1. Franck

    Franck Guest

    Hello EveryBody,

    i want to put Control in each Cell of my DataGrid,
    i don't know if it's possible...

    i have a table with 3 Rows and 7 Colums,
    and i want to click for example in the (0,1) colums to do an action.

    how i can do ?

    need help, it's very hard !

    Thanks,

    Franck
     
    Franck, Nov 12, 2003
    #1
    1. Advertising

  2. Franck

    Alvin Bruney Guest

    in your itemcreated event handler for your datagrid, add this code
    e.item.cells[1].controls.add(new Textbox())

    that's it.

    regards

    --


    -----------
    Got TidBits?
    Get it here: www.networkip.net/tidbits
    "Franck" <> wrote in message
    news:...
    > Hello EveryBody,
    >
    > i want to put Control in each Cell of my DataGrid,
    > i don't know if it's possible...
    >
    > i have a table with 3 Rows and 7 Colums,
    > and i want to click for example in the (0,1) colums to do an action.
    >
    > how i can do ?
    >
    > need help, it's very hard !
    >
    > Thanks,
    >
    > Franck
     
    Alvin Bruney, Nov 12, 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. Mark Sizzler
    Replies:
    1
    Views:
    4,014
  2. Gabriel Rossetti
    Replies:
    3
    Views:
    576
    Jerry Hill
    Apr 25, 2008
  3. Empire City
    Replies:
    3
    Views:
    419
    Empire City
    Apr 30, 2004
  4. RJ
    Replies:
    1
    Views:
    249
    Eliyahu Goldin
    Feb 17, 2005
  5. David Thielen

    put control in a repeater cell from code behind

    David Thielen, Mar 21, 2006, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    837
    Steven Cheng[MSFT]
    Mar 22, 2006
Loading...

Share This Page