Interviews2 answers
Is it possible for a control to define a handler for an event, that the control can't itself raise?
2 Answers
yes
Munesh SharmaPosted Sep 30, 2014, 9:53 PM EDT
Yes, It's is possible for a control to define a handler for an event, that the control can't itself raise.
These incidents are called attached events.
For example, a button controls in a grid. The button class defines a click event, but the grid class doest not. However, you can still define a handler for buttons in the grid by attaching the Click events of the button control.
Kunal KumarPosted Sep 26, 2014, 11:01 AM EDT
