[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Collapse]WPF Controls
  Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Expand]MVVM Framework
 [Collapse]Controls and Libraries
   Reporting
  [Collapse]Data Grid
   [Expand]Getting Started
   [Expand]Implementation Details
   [Collapse]Views
    [Collapse]Table View
      Columns Layout and Width
      Fixed Columns and Bands
    [Expand]Card View
     TreeList View
     Creating and Assigning Views
   [Expand]Grid View Data Layout
   [Expand]Binding to Data
   [Expand]Master-Detail Data Representation
   [Expand]Data Editing and Validation
   [Expand]Grouping
   [Expand]Selection
   [Expand]Filtering and Searching
   [Expand]Sorting
   [Expand]Data Summaries
   [Expand]Paging and Scrolling
   [Expand]Focus and Navigation
   [Expand]Conditional Formatting
   [Expand]Drag-and-Drop
   [Expand]Appearance Customization
   [Expand]MVVM Enhancements
   [Expand]Printing and Exporting
   [Expand]End-User Interaction
   [Expand]Miscellaneous
   [Expand]Performance Improvement
   [Expand]Design-Time Features
   [Expand]Visual Elements
   [Expand]End-User Capabilities
   [Expand]Examples
  [Expand]Ribbon, Bars and Menu
  [Expand]Charts Suite
  [Expand]Pivot Grid
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Tree List
  [Expand]Gauge Controls
  [Expand]Map Control
  [Expand]Layout Management
  [Expand]Windows Modern UI
  [Expand]Printing-Exporting
  [Expand]Data Editors
  [Expand]Navigation Controls
  [Expand]Spell Checker
  [Expand]Property Grid
  [Expand]PDF Viewer
  [Expand]TreeMap Control
  [Expand]Gantt Control
  [Expand]Diagram Control
  [Expand]Windows and Utility Controls
   Dialogs, Notifications and Panels
  [Expand]Scheduler (legacy)
 [Expand]Scaffolding Wizard
 [Expand]Localization
  Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Fixed Columns and Bands

Table Views allow you to anchor (fix) columns and bands to the left or right edge, so they are not horizontally scrolled with the View. This can be useful when columns (bands) should always be displayed onscreen, regardless of scrolling.

To fix a column or a band, use its BaseColumn.Fixed property. By default, this property is set to FixedStyle.None and the column/band is not fixed. Set the BaseColumn.Fixed property to FixedStyle.Left or FixedStyle.Right, to fix the column/band to the left or right View edge, respectively.

Fixed columns and bands are separated from other columns and bands by a vertical line. Its width is specified by the TableView.FixedLineWidth property.

By default, the GridControl's horizontal scrollbar fills only the control's scrollable part – the width of non-fixed columns. Set the TableView.ExtendScrollBarToFixedColumns property to true to extend the scrollbar's width to fixed columns.

The animation below shows the Table View with one column fixed to the left and one column fixed to the right.

The Table View provides three properties that allow fixed and not fixed columns to be obtained. These are: TableView.FixedLeftVisibleColumns, TableView.FixedRightVisibleColumns and TableView.FixedNoneVisibleColumns.

Note

Using Fixed Columns and Bands only makes sense when the auto-column width feature is disabled and the total width of columns/bands exceeds the View's width. Otherwise, horizontal scrolling is disabled.

Is this topic helpful?​​​​​​​