Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ListViewSortEventArgs::SortDirection Property

 

Gets or sets the direction in which to sort the ListView control.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web.Extensions (in System.Web.Extensions.dll)

public:
property SortDirection SortDirection {
	SortDirection get();
	void set(SortDirection value);
}

Property Value

Type: System.Web.UI.WebControls::SortDirection

One of the SortDirection values.

When the Sorting event is raised, you can use the SortDirection property to specify or determine the order in which the ListView control will sort items.

The following example shows how to use the ListViewSortEventArgs object to display the sort direction and the column being sorted. This code example is part of a larger example provided for the ListViewSortEventArgs class.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.5
Return to top
Show:
© 2017 Microsoft