Прочитај на енглеском Уреди

Делите путем


DataGridColumn.CanUserReorder Property

Definition

Gets or sets a value that indicates whether the user can change the column display position by dragging the column header.

C#
public bool CanUserReorder { get; set; }

Property Value

true if the user can drag the column header to a new position; otherwise, false. The registered default is true. For information about what can influence the value, see DependencyProperty.

Remarks

You can set this reorder behavior for all columns by setting the DataGrid.CanUserReorderColumns property. If the DataGridColumn.CanUserReorder property and the DataGrid.CanUserReorderColumns property are both set, a value of false takes precedence over a value of true.

Applies to

Производ Верзије
.NET Framework 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
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

See also