What’s a bubbled event?

 Posted by Majith on 7/19/2008 | Category: ASP.NET Interview questions | Views: 6610

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.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Posted by: Raja on: 10/13/2008
Server controls like GridView, DataList, Repeater can have other child controls inside eg., a GridView can have checkbox inside it. These child controls do not raise their events by themselves, rather they pass the event to the container parent (which can be a GridView, DataList, Repeater), which passed to the page as 'ItemCommand' event. As the child control send their events to parent this is termed as event bubbling.

Login to post response