TableView.AllowFixedColumnMenu Property

Gets or sets whether menu items used to fix a column to the left or right, are shown within a column's context menu. This is a dependency property.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v20.1.dll

Declaration

public bool AllowFixedColumnMenu { get; set; }
Public Property AllowFixedColumnMenu As Boolean

Property Value

Type Description
Boolean

true, to show items used to fix a column to the left or right, within a column's context menu; otherwise, false.

Remarks

If the AllowFixedColumnMenu property is set to false, end-users are not allowed to fix columns to the left or right. In this instance, a column can be fixed only in code using the BaseColumn.Fixed property.

To learn more, see Fixed Columns and Bands.

Example

This code example demonstrates how to enable the Grid's fixed style menu.

<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
        x:Class="WpfApp.MainWindow" Title="MainWindow">
    <Grid>
        <dxg:GridControl Name="grid">
            <dxg:GridControl.Columns>
                <dxg:GridColumn FieldName="ID"/>
                <dxg:GridColumn FieldName="Name" Header="Name"/>
                <dxg:GridColumn FieldName="LastName" Header="Last Name"/>
                <dxg:GridColumn FieldName="Address" Header="Address"/>
                <dxg:GridColumn FieldName="PhoneNumber" Header="Phone Number"/>
            </dxg:GridControl.Columns>
            <dxg:GridControl.View>
                <dxg:TableView ShowTotalSummary="True"/>
            </dxg:GridControl.View>
        </dxg:GridControl>
    </Grid>
</Window>

The image below illustrates the result:

Fixed Style Example

Implements

DevExpress.Xpf.Grid.ITableView.AllowFixedColumnMenu
See Also