GridViewSortEventArgs(String, SortDirection) Constructor

Definition

Initializes a new instance of the GridViewSortEventArgs class.

C#
public GridViewSortEventArgs(string sortExpression, System.Web.UI.WebControls.SortDirection sortDirection);

Parameters

sortExpression
String

The sort expression used to sort the items in the control.

sortDirection
SortDirection

A SortDirection that indicates the direction in which to sort the items in the control.

Remarks

Use this constructor to initialize a new instance of the GridViewSortEventArgs class.

The following table shows the initial property values for an instance of GridViewSortEventArgs.

Property Initial value
SortDirection The value of the sortDirection parameter.
SortExpression The value of the sortExpression parameter.

Napomena

This constructor is used primarily by control developers when raising events.

Applies to

Proizvod Verzije
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also