This documentation is archived and is not being maintained.

DataGridCommandEventArgs Constructor

Initializes a new instance of the DataGridCommandEventArgs class.

[Visual Basic]
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
);

Parameters

item
A DataGridItem that represents the selected item in the DataGrid.
commandSource
The source of the command.
originalArgs
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.

Requirements

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

DataGridCommandEventArgs Class | DataGridCommandEventArgs Members | System.Web.UI.WebControls Namespace

Show: