Editar

Compartir a través de


DataGridCommandEventArgs(DataGridItem, Object, CommandEventArgs) Constructor

Definition

Initializes a new instance of the DataGridCommandEventArgs class.

public:
 DataGridCommandEventArgs(System::Web::UI::WebControls::DataGridItem ^ item, System::Object ^ commandSource, System::Web::UI::WebControls::CommandEventArgs ^ originalArgs);
public DataGridCommandEventArgs (System.Web.UI.WebControls.DataGridItem item, object commandSource, System.Web.UI.WebControls.CommandEventArgs originalArgs);
new System.Web.UI.WebControls.DataGridCommandEventArgs : System.Web.UI.WebControls.DataGridItem * obj * System.Web.UI.WebControls.CommandEventArgs -> System.Web.UI.WebControls.DataGridCommandEventArgs
Public Sub New (item As DataGridItem, commandSource As Object, originalArgs As CommandEventArgs)

Parameters

item
DataGridItem

A DataGridItem that represents the selected item in the DataGrid.

commandSource
Object

The source of the command.

originalArgs
CommandEventArgs

A CommandEventArgs that contains the event data.

Remarks

Use this constructor to create and initialize a new instance of the DataGridCommandEventArgs class.

When an instance of DataGridCommandEventArgs is created by a call to this constructor, the following properties are initialized to the specified values.

Property Initial value
CommandSource The value of the commandSource parameter.
Item The value of the item parameter.

Applies to