Add Controls to GridView at runtime

M

mangomadman

Has anyone solved the problem with adding Controls dynamically to a GridView at runtime?

I encounter the problem that GridView doesn't save these Controls on post back, which makes them useless.
 
W

Winista

That is by design. this is not for GridView only. Its for page also. And for
that matter its for "Control" object because page is also a control. All
dynamically added controls have to readded on post back by the time
Page_Load event finishes. You can build your own value added infrastructure
on top of vanilla grid view to support your requirements. Thats where the
third party controls come in handy because they add these features.
 

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

Members online

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,738
Latest member
JinaMacvit

Latest Threads

Top