none
Custom Gridview event handling RRS feed

  • Question

  • Hi,

        Have created a custom gridview :- class MyGridView : datagridview.

    The MyGridView control has virtual mode on and has handler for CellValueClicked event. When I use MyGridView control in my application

    I want to handle the CellValueClicked event in the application also. I expected that when the event occurs, both the handlers, one defined in MyGridView and the one in Application (in that order) to be executed, but thats not the case. Most of the times the handler in MyGridView is never called. Only the Application Handler is called. Is there are problem in the way I am implementing the custom control. I want to make sure that my custom control event handler and the handler defined in the application( which uses the custom control)  to be called when the event occurs.

       

    Saturday, July 27, 2013 6:23 PM

All replies