Is it possible....

Discussion in 'ASP .Net Datagrid Control' started by Jim, Sep 15, 2003.

  1. Jim

    Jim Guest

    Is it possible to put a web control (*.ascx) in a DataGrid column?

    Cheers

    Jim
     
    Jim, Sep 15, 2003
    #1
    1. Advertising

  2. Jim

    Anatoly Guest

    Yes, for example you want to put such control(myControl which is in
    "myControl.ascx" file) in column with index 1 then write on DataGrid
    OnItemCreate event:

    myControl c = (myControl)LoadControl("myControl.ascx");
    e.Item.Cells[1].Controls.Add(c);

    HTH



    "Jim" <ssss> wrote in message news:...
    > Is it possible to put a web control (*.ascx) in a DataGrid column?
    >
    > Cheers
    >
    > Jim
    >
    >
     
    Anatoly, Sep 15, 2003
    #2
    1. Advertising

  3. Jim

    Saravana Guest

    Yes, you can put web control inside datagrid column. For example refer this
    article,
    http://www.microsoft.com/india/msdn/articles/PopupCalendarinASP.aspx

    --
    Saravana
    Microsoft India Community Star,MC**
    www.extremeexperts.com



    "Anatoly" <> wrote in message
    news:...
    > Yes, for example you want to put such control(myControl which is in
    > "myControl.ascx" file) in column with index 1 then write on DataGrid
    > OnItemCreate event:
    >
    > myControl c = (myControl)LoadControl("myControl.ascx");
    > e.Item.Cells[1].Controls.Add(c);
    >
    > HTH
    >
    >
    >
    > "Jim" <ssss> wrote in message

    news:...
    > > Is it possible to put a web control (*.ascx) in a DataGrid column?
    > >
    > > Cheers
    > >
    > > Jim
    > >
    > >

    >
    >
     
    Saravana, Sep 15, 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. Michael Giagnocavo [MVP]

    Re: Is it possible....

    Michael Giagnocavo [MVP], Jun 28, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    1,217
    Michael Giagnocavo [MVP]
    Jun 28, 2003
  2. Ekkehard Kraemer

    Development on 98 possible at all?

    Ekkehard Kraemer, Sep 13, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    431
    Dino Chiesa [Microsoft]
    Sep 22, 2003
  3. Markus
    Replies:
    1
    Views:
    491
    Markus
    Nov 22, 2005
  4. Replies:
    4
    Views:
    299
    Kenny McCormack
    Feb 21, 2006
  5. Replies:
    10
    Views:
    492
    Chris Gonnerman
    Dec 14, 2007
Loading...

Share This Page