Skip to main content

BootstrapGridViewDataColumn.Fixed Property

Specifies whether the column is moved or anchored to the grid’s left edge when users scroll the grid horizontally.

Namespace: DevExpress.Web.Bootstrap

Assembly: DevExpress.Web.Bootstrap.v24.2.dll

NuGet Package: DevExpress.Web.Bootstrap

#Declaration

[DefaultValue(false)]
public bool Fixed { get; set; }

#Property Value

Type Default Description
Boolean false

true to anchor the column to the grid’s left edge when users scroll the grid horizontally; false to move the column when users scroll the grid horizontally.

#Remarks

You can freeze individual grid columns to make them always visible on screen while users scroll the grid horizontally. To enable this functionality, do the following:

  • Set a column’s Fixed property to true to anchor the column to the grid’s left edge.
  • Set the Settings.HorizontalScrollBarMode property to Auto or Visible.
  • Specify the width of the grid and all its columns.

Run Demo: Fixed Columns

<dx:BootstrapGridView runat="server" Width="100%" DataSourceID="CustomersDataSource" KeyFieldName="CustomerID">
    <Settings HorizontalScrollBarMode="Auto" />
    <Columns>
        <dx:BootstrapGridViewDataColumn FieldName="ContactName" Width="200" Fixed="true" />
        <dx:BootstrapGridViewDataColumn FieldName="CompanyName" Width="250" Fixed="true" />
        <!-- ... -->
    </Columns>
    <!-- ... -->
</dx:BootstrapGridView>
See Also