Adding multiple controls to Item Template column of Grid at Runtim

Discussion in 'ASP .Net' started by =?Utf-8?B?QWJoaXNoZWs=?=, Mar 24, 2006.

  1. I am creating a Datagrid at runtime and I have to create all the columns of
    grid at runtime... I am facing problem in the item template column. Here I
    want to place more than one control... For example Suppose there is a
    template column tc and i want to place two drop downlist in this tc say
    DrpList1 and DrpList2... Can anyone provide me any idea how to do this... I
    am getting many examples of adding items to the item template column by
    implementing ITemplate and it is also working... but they are only associated
    with the single control...
    =?Utf-8?B?QWJoaXNoZWs=?=, Mar 24, 2006
    #1
    1. Advertising

  2. I use here 2 controls within the template; a checkbox and a label:

    http://www.societopia.net/Samples/DataGridEventDelegates.aspx


    I use here textboxes or radiobuttonlists with validators:

    http://www.webswapp.com/codesamples/aspnet20/itemplate/gridview.aspxspx

    --
    HTH,
    Phillip Williams
    http://www.societopia.net
    http://www.webswapp.com


    "Abhishek" wrote:

    > I am creating a Datagrid at runtime and I have to create all the columns of
    > grid at runtime... I am facing problem in the item template column. Here I
    > want to place more than one control... For example Suppose there is a
    > template column tc and i want to place two drop downlist in this tc say
    > DrpList1 and DrpList2... Can anyone provide me any idea how to do this... I
    > am getting many examples of adding items to the item template column by
    > implementing ITemplate and it is also working... but they are only associated
    > with the single control...
    =?Utf-8?B?UGhpbGxpcCBXaWxsaWFtcw==?=, Mar 24, 2006
    #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. Vikramaditya Singh

    adding serial no column in a bounded data grid

    Vikramaditya Singh, Jan 28, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    3,477
    Saravana [MVP]
    Jan 28, 2004
  2. Shahid Saleem
    Replies:
    1
    Views:
    724
    =?Utf-8?B?RWx0b24gVw==?=
    Aug 26, 2005
  3. Glenn
    Replies:
    2
    Views:
    426
    Jeff Dillon
    May 15, 2006
  4. =?Utf-8?B?SmVyb2QgSGF0bGV5?=

    GridView add multiple controls to edit item template

    =?Utf-8?B?SmVyb2QgSGF0bGV5?=, Oct 7, 2006, in forum: ASP .Net
    Replies:
    2
    Views:
    1,040
    =?Utf-8?B?SmVyb2QgSGF0bGV5?=
    Oct 8, 2006
  5. =?Utf-8?B?RGFuaWVs?=

    Binding a column to a dropdownlist at runtim

    =?Utf-8?B?RGFuaWVs?=, Mar 2, 2007, in forum: ASP .Net
    Replies:
    2
    Views:
    568
    =?Utf-8?B?TWlsb3N6IFNrYWxlY2tpIFtNQ0FEXQ==?=
    Mar 5, 2007
Loading...

Share This Page