Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > Is it possible....

Reply
Thread Tools

Is it possible....

 
 
Jim
Guest
Posts: n/a
 
      09-15-2003
Is it possible to put a web control (*.ascx) in a DataGrid column?

Cheers

Jim


 
Reply With Quote
 
 
 
 
Anatoly
Guest
Posts: n/a
 
      09-15-2003
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:(E-Mail Removed)...
> Is it possible to put a web control (*.ascx) in a DataGrid column?
>
> Cheers
>
> Jim
>
>



 
Reply With Quote
 
 
 
 
Saravana
Guest
Posts: n/a
 
      09-15-2003
Yes, you can put web control inside datagrid column. For example refer this
article,
http://www.microsoft.com/india/msdn/...ndarinASP.aspx

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



"Anatoly" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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:(E-Mail Removed)...
> > Is it possible to put a web control (*.ascx) in a DataGrid column?
> >
> > Cheers
> >
> > Jim
> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




Advertisments