2
Reply

what is event bublling give example

17y
5.1k
0
Reply

    When you have a complex control, like DataGrid, writing an event processing routine for each object (cell, button, row, etc.) is quite tedious. The controls can bubble up their eventhandlers, allowing the main DataGrid event handler to take care of its constituents.

    Thanks & Regards,

    Poorani

    event bubbling is passing event object from source control to the parent control and if it is not handled there then the event will move from again to parent of parent and again if it is not handled anywhere then it will move to the window object. In asp.net datagrid we see the event bubbling.

    edit command is an good example of this where edit module is not handled by individual edit button but by Itemcommand of DataGrid.

    17y
    0