Skip to main content
A newer version of this page is available. .

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.v18.2.dll

Declaration

public bool AllowFixedColumnMenu { get; set; }

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

The following code snippets (auto-collected from DevExpress Examples) contain references to the AllowFixedColumnMenu property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also