471,306 Members | 1,215 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,306 software developers and data experts.

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

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.

Dec 19 '05 #1
1 1335
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.

--
Venlig hilsen
Anders Borum / SphereWorks
Microsoft Certified Professional (.NET MCP)
Dec 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Billy Jacobs | last post: by
9 posts views Thread by John Kirksey | last post: by
3 posts views Thread by Richard | last post: by
reply views Thread by utvecklare.net | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.