GridControl.HorizontalScrollOffset Property

Gets or sets a horizontal scrolling offset.

Namespace: DevExpress.Mobile.DataGrid

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

Syntax

public double HorizontalScrollOffset { get; set; }

Returns

Type Description
Double

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

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