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.
 
Back
Top