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

GridViewColumnHeader.Role Property

Gets the role of a GridViewColumnHeader.

Namespace:  System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

public GridViewColumnHeaderRole Role { get; }

Property Value

Type: System.Windows.Controls.GridViewColumnHeaderRole
A GridViewColumnHeaderRole enumeration value that specifies the current role of the column.

Identifier field

RoleProperty

Metadata properties set to true

None

The GridViewHeaderRowPresenter class performs layout for the column headers in a GridView and places an additional column header at the end to add space. A Role value of Padding identifies this column header in the GridView. A Role value of Floating identifies a column that is currently the object of a drag-and-drop operation.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft