Export (0) Print
Expand All

DisplayColumnAttribute Constructor (String)

Initializes a new instance of the DisplayColumnAttribute class by using the specified column.

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

public DisplayColumnAttribute(
	string displayColumn


Type: System.String

The name of the column to use as the display column.

The following example shows how to define the parent column to display in a page for the child table as the foreign-key column.

public partial class Customer


.NET Framework

Supported in: 4.6, 4.5, 4, 3.5 SP1

.NET Framework Client Profile

Supported in: 4

Portable Class Library

Supported in: Portable Class Library
© 2015 Microsoft