Event handling in dynamically generated grid

  • Thread starter Thread starter Vishal KC
  • Start date Start date
V

Vishal KC

Hi,

I have created a grid which is totally table driven. All the required
information(column info, control info etc) are obtained from the
database tables. Is it possible to handle the events for the dynamically
generated controls within the grid?

Thanks,
Vishal
 
Hi,

I have created a grid which is totally table driven. All the required
information(column info, control info etc) are obtained from the
database tables. Is it possible to handle the events for the dynamically
generated controls within the grid?

Yes. If you're using VB.NET, see the AddHandler/ReleaseHandler
commands. With C#, you can use the += to the events to hook up
handlers.
 

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

Back
Top