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

GridSplitContainer.Grid Property

Gets or sets the Grid to be split. If the Split View is already active, the property specifies the grid displayed in the first view region.

Namespace: DevExpress.XtraGrid

Assembly: DevExpress.XtraGrid.v19.2.dll

Declaration

[DXCategory("Split")]
[Browsable(true)]
public GridControl Grid { get; set; }

Property Value

Type Description
GridControl

A GridControl displayed (or to be displayed) in the first view region.

Remarks

When the Split View is active (see GridSplitContainer.ShowSplitView), a GridSplitContainer displays two grid controls separated by a splitter. The first (original) grid control, specified by the Grid property, is displayed in the first region. The second grid control, specified by the GridSplitContainer.SplitChildGrid property, is displayed in the second region.

These two grid controls are synchronized, as specified by the GridSplitContainer.SynchronizeExpandCollapse, GridSplitContainer.SynchronizeFocusedRow, GridSplitContainer.SynchronizeScrolling and GridSplitContainer.SynchronizeViews properties.

When the Split View is not active, the GridSplitContainer‘s entire region is occupied by the grid control, specified by the Grid property. The second grid control is not visible, and the GridSplitContainer.SplitChildGrid property returns null.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Grid 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