Horizontal Scrolling

If the number of GridControl columns is large and the total width of the columns exceeds the grid's width, you can enable horizontal scrolling. For this, set the GridControl.ColumnsAutoWidth property to false to disable the auto-column width feature. In this case, the grid will display a few columns only, and the other columns will appear when an end-user scrolls the grid.

Also, you can anchor (fix) certain columns either to the left or right edge of the grid to prevent them from being horizontally scrolled. In this demo, the Photo and Name columns are fixed on the left, and the Total column is fixed on the right. The rest of the columns can be scrolled.

Note that new context menu items are available for column headers in the demo. These items allow an end-user to change the fixed style for a column. To invoke the context menu, tap and hold a desired column header. The set of menu items depends on the column type and its fixed style.

To disable the horizontal scrolling feature, clear the Horizontal Scrolling check box below the grid. It forces the grid to recalculate the columns' width and make all the columns visible on the screen.

Related APIs:

GridControl.ColumnsAutoWidth

GridColumn.FixedStyle