This documentation is archived and is not being maintained.

DataGridSortCommandEventArgs Constructor

Initializes a new instance of the DataGridSortCommandEventArgs class.

[Visual Basic]
Public Sub New( _
   ByVal commandSource As Object, _
   ByVal dce As DataGridCommandEventArgs _
)
[C#]
public DataGridSortCommandEventArgs(
   object commandSource,
 DataGridCommandEventArgs dce
);
[C++]
public: DataGridSortCommandEventArgs(
   Object* commandSource,
 DataGridCommandEventArgs* dce
);
[JScript]
public function DataGridSortCommandEventArgs(
   commandSource : Object,
 dce : DataGridCommandEventArgs
);

Parameters

commandSource
The source of the command.
dce
A DataGridCommandEventArgs that contains the event data.

Remarks

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

When an instance of DataGridSortCommandEventArgs 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.
SortExpression The value of the dce.CommandArgument parameter.

Requirements

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

See Also

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

Show: