Skip to main content
A newer version of this page is available. .

GridControl.Dock Property

Gets or sets which control borders are docked to its parent control and determines how a control is resized with its parent.

Namespace: DevExpress.XtraGrid

Assembly: DevExpress.XtraGrid.v19.1.dll

Declaration

public override DockStyle Dock { get; set; }

Property Value

Type Description
DockStyle

A DockStyle value.

Remarks

In Split Presentation mode, a GridControl is placed within a GridSplitContainer, by occupying its entire region. The Dock property is set to Fill and cannot be changed in this mode.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Dock property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also