Skip to main content

GridControl.HorizontalScrollOffset Property

Gets or sets a horizontal scrolling offset.

Namespace: DevExpress.Mobile.DataGrid

Assembly: DevExpress.Mobile.Grid.v18.2.dll

Declaration

public double HorizontalScrollOffset { get; set; }

Property Value

Type Description
Double

A double value, which specifies the scrolling offset (in density-independent pixels).

Remarks

Important

This documentation topic describes legacy technology. We no longer develop new functionality for the GridControl and suggest that you use the new DataGridView control instead.

By setting various values to this property, you can scroll grid columns directly from your code. The offset is measured from the right edge of the last column fixed to the left (if any) or from a grid’s left edge (if there are no fixed columns).

The code below sets the Position column’s width as a scrolling offset.

using DevExpress.Mobile.DataGrid;

     // ... 

     grid.HorizontalScrollOffset = grid.Columns["Position"].Width;

     // ...
See Also