System.Web.UI.WebControls Namespace DataGridCommandEventArgs Class
Initializes a new instance of the DataGridCommandEventArgs class.
[ VB ]
Public Sub New ( _
ByVal item As DataGridItem, _
ByVal commandSource As Object, _
ByVal originalArgs As CommandEventArgs _
)
[ C# ]
public DataGridCommandEventArgs (
DataGridItem item,
object commandSource,
CommandEventArgs originalArgs
);
[ C++ ]
public: DataGridCommandEventArgs (
DataGridItem* item,
Object* commandSource,
CommandEventArgs* originalArgs
);
[ JScript ]
public function DataGridCommandEventArgs (
item : DataGridItem,
commandSource : Object,
originalArgs : CommandEventArgs
);
- item
- The selected item from the DataGrid.
- commandSource
- The source of the command.
- originalArgs
- A CommandEventArgs that contains the original event data.
Use this constructor to 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.
Item |
Description |
Item |
The value of the item parameter. |
CommandSource |
The value of the commandSource parameter. |
DataGridCommandEventHandler DataGrid CancelCommand DeleteCommand EditCommand ItemCommand UpdateCommand