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.1.dll
NuGet Package: DevExpress.Web.Bootstrap
Declaration
Property Value
Type | Default | Description |
---|---|---|
Boolean | false |
|
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 totrue
to anchor the column to the grid’s left edge. - Set the Settings.HorizontalScrollBarMode property to
Auto
orVisible
. - Specify the width of the grid and all its 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