Which event does the web DataGrid control raise when the custom button is clicked?
-
ItemCommand
-
ButtonClicked
-
OnClick
-
EditCommand
A
Correct answer
Explanation
The DataGrid control raises the ItemCommand event when any button within the grid is clicked, including custom buttons. This server-side event is specifically designed to handle button clicks in DataGrid rows. OnClick is a client-side JavaScript event, ButtonClicked is not a standard DataGrid event, and EditCommand only fires for Edit buttons specifically.