Log In
[Expand]General Information
[Collapse]WinForms Controls
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Expand]Forms and User Controls
  [Expand]Messages, Notifications and Dialogs
  [Expand]Editors and Simple Controls
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Collapse]Data Grid
   [Expand]Getting Started
   [Expand]Binding to Data
   [Collapse]Grid View
    [Collapse]Columns and Card Fields
     [Expand]Customization Form
      Tutorial: Column Resizing
      Tutorial: Best Fit Option
      Tutorial: Auto Width Mode
      Tutorial: Fixed Columns
      Tutorial: Column Reordering
      Tutorial: Column Visibility
      Tutorial: Column Chooser API
      Column and Card Field Overview
      Data Cells
      Column Width Options - Auto-Width, Best Fit and Auto-Fill Column
      Column Visibility
      Creating Columns and Binding Them to Data Fields
      Fixed Columns
    [Expand]Rows and Cards
    [Expand]Row, Column and Cell Access API
    [Expand]Split Presentation
    [Expand]Cell Merging
    [Expand]Row Preview Sections
   [Expand]View Technology
   [Expand]Data Editing
   [Expand]Filtering and Locating Rows
   [Expand]Focus and Selection Handling
   [Expand]Processing Rows
   [Expand]Formatting Cell Values
   [Expand]Master-Detail Relationships
   [Expand]Asynchronous Image Load
   [Expand]Export and Printing
   [Expand]Appearance and Conditional Formatting
   [Expand]Batch Modifications
   [Expand]Hit Information
   [Expand]Popup Menus
   [Expand]Saving and Restoring Layouts
   [Expand]Visual Elements
   [Expand]Design-Time Features
   [Expand]End-User Capabilities
    Included Components
  [Expand]Vertical Grid
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Chart Control
  [Expand]Map Control
  [Expand]Rich Text Editor
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]PDF Viewer
  [Expand]TreeMap Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Report Server
[Expand]eXpressApp Framework
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Fixed Columns

Expanded Online Video

This video shows you how to keep columns visible at all times, regardless of horizontal scrolling.

Expanded Fixed Columns

Grid Views allow you to anchor columns to the left or right edge. When anchored, columns are not horizontally scrolled with the View. Use this feature if you need a column (or columns) to always be displayed, regardless of scrolling.

To anchor a column to a View edge, use the column's GridColumn.Fixed property. By default, the property value is FixedStyle.None and thus the column is not anchored. Set the property to FixedStyle.Left or FixedStyle.Right to anchor your column to the left or right View edge respectively. Note that fixed columns are separated from others by a vertical line whose width is specified by the GridView.FixedLineWidth property.

The image below illustrates an example with two columns anchored to the left edge and a single column anchored to the right. The fixed columns' style is changed to make their status more obvious.

Note that anchoring columns makes sense only when the auto width feature is disabled and the total width of columns exceeds the View's width. Otherwise, horizontal scrolling does not occur and fixed columns end up behaving like other columns.

Banded Grid Views and Advanced Banded Grid Views do not support fixed columns. However, it is possible to anchor bands in these Views in the same manner as columns are anchored in Grid Views. See Fixed Bands to learn more.

Expanded See Also

How would you rate this topic?​​​​​​​