GridSplitContainer.SynchronizeScrolling Property

Gets or sets whether scrolling positions are in sync between two grid controls. This property is not in effect when the Grid Control presents data using a CardView or LayoutView object.

Namespace: DevExpress.XtraGrid

Assembly: DevExpress.XtraGrid.v20.1.dll

Declaration

[DXCategory("Split")]
[DefaultValue(DefaultBoolean.Default)]
public DefaultBoolean SynchronizeScrolling { get; set; }
<DXCategory("Split")>
<DefaultValue(DefaultBoolean.Default)>
Public Property SynchronizeScrolling As DefaultBoolean

Property Value

Type Default Description
DefaultBoolean

Default

A DefaultBoolean value that specifies if scrolling positions are in sync between two grid controls.

Remarks

If the SynchronizeScrolling property is set to Default, the horizontal scrolling positions are synchronized when the grid is divided by a horizontal splitter (see GridSplitContainer.Horizontal); and the vertical scrolling positions are synchronized when the grid is divided by a vertical splitter.

If the SynchronizeScrolling property is set to Default or True, certain grid properties are automatically adjusted when the grid control is split. When it is split vertically, the column headers are automatically made visible and horizontal scrolling is disabled. If you do not need this behavior, you can restore the previous settings via the GridOptionsView.ShowColumnHeaders and GridView.HorzScrollVisibility options after the grid is split. When the grid is split horizontally, the vertical scrolling is disabled via the GridView.VertScrollVisibility option. If required, you can enable vertical scrolling using this property after the grid is split.

See Also