Is it possible....

  • Thread starter Thread starter Jim
  • Start date Start date
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
 
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 said:
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:[email protected]...
Is it possible to put a web control (*.ascx) in a DataGrid column?

Cheers

Jim
 
Back
Top