Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

DisplayColumnAttribute Constructor (String, String, Boolean)

Initializes a new instance of the DisplayColumnAttribute class with the specified display column, sort column, and sort order.

Namespace:  System.ComponentModel.DataAnnotations
Assembly:  System.ComponentModel.DataAnnotations (in System.ComponentModel.DataAnnotations.dll)

public DisplayColumnAttribute(
	string displayColumn,
	string sortColumn,
	bool sortDescending
)

Parameters

displayColumn
Type: System.String
The name of the column to display.
sortColumn
Type: System.String
The name of the column to use for sorting.
sortDescending
Type: System.Boolean
true to sort in descending order; otherwise, false.

Silverlight

Supported in: 5, 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2015 Microsoft