Version

ItemCommand Event (WebDataGrid)

The ItemCommand event is raised when a WebControl inside of the grid emits an event which would cause a postback.
Syntax
'Declaration
 
Public Event ItemCommand As ItemCommandEventHandler
public event ItemCommandEventHandler ItemCommand
Event Data

The event handler receives an argument of type HandleCommandEventArgs containing data related to this event. The following HandleCommandEventArgs properties provide information specific to this event.

PropertyDescription
CommandArgument (Inherited from System.Web.UI.WebControls.CommandEventArgs)Gets the argument for the command.
CommandName (Inherited from System.Web.UI.WebControls.CommandEventArgs)Gets the name of the command.
Handled Indicates whether the command event was handled. Can be set from inside of an event handler and stop the command event from propagating.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also