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

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.
 
A

Anders Borum

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top