Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

Tutorial: Banded Grid View - Fixed Bands

This walkthrough is a transcript of the Banded Grid View - Fixed Bands video available on the DevExpress YouTube Channel.

Banded Views allow you to use the Fixed Bands feature similar to Frozen Panes in Microsoft Excel. Certain bands can be anchored to the View’s left or right edge and can always be displayed regardless of horizontal scrolling.

#Enabling the Fixed Bands Feature

To enable this feature, first turn off the Column Auto Width mode. To do this, expand the BandedGridView.OptionsView property and disable the GridOptionsView.ColumnAutoWidth option. This allows the horizontal scrollbar to appear.

BandedGirdView_ColumnAutoWidthProperty

#Anchoring Bands to View Edges

Then, set the GridBand.Fixed property for the Main and Notes bands to FixedStyle.Left and FixedStyle.Right, respectively.

BandedGirdView_BandFixedProperty

Run the application and scroll the View horizontally to see the result.

#Changing the Fixed Line Width

Go to the Property grid displaying the View’s settings and use the GridView.FixedLineWidth property to change the width of the line that separates anchored bands from the rest of the View.

BandedGirdView_FixedLineWidthProperty

See Also