How to load a web user control into a DataGrid cell ?

  • Thread starter Thread starter conckrish
  • Start date Start date
C

conckrish

Hi all..

Can anyone tell me how to load a web user control into a DataGrid
cell at runtime?? And also i need to load different user controls at
each Datagrid cell???

Thanx in advance.

Krishnan.
 
Hello!

You can use the LoadControl() method inherited from the UserControl type to
load your custom .ascx files. You probably want to subscribe to the
ItemDataBound event exposed by the DataGrid (or similar), and load / add the
..ascx file there.
 
Back
Top