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. Advertisements

  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. Advertisements

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,173
  2. Martin
    Replies:
    3
    Views:
    1,660
    Martin
    Jun 22, 2006
  3. Gabriel Rossetti
    Replies:
    3
    Views:
    791
    Jerry Hill
    Apr 25, 2008
  4. Empire City
    Replies:
    3
    Views:
    633
    Empire City
    Apr 30, 2004
  5. Vadim

    Can we put ActiveX Control into the DataGrid Column?

    Vadim, Feb 15, 2005, in forum: ASP .Net Datagrid Control
    Replies:
    1
    Views:
    230
    Alvin Bruney [MVP]
    Feb 15, 2005
  6. RJ
    Replies:
    1
    Views:
    414
    Eliyahu Goldin
    Feb 17, 2005
  7. Sara T.

    Put data to Datagrid Control

    Sara T., Jul 23, 2003, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    184
    Sara T.
    Jul 23, 2003
  8. 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:
    978
    Steven Cheng[MSFT]
    Mar 22, 2006
Loading...