Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

GridSplitContainer.Horizontal Property

Gets or sets whether a splitter divides the container into two horizontally or vertically arranged regions.

Namespace: DevExpress.XtraGrid

Assembly: DevExpress.XtraGrid.v24.2.dll

NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation

#Declaration

[DefaultValue(false)]
[DXCategory("Split")]
public override bool Horizontal { get; set; }

#Property Value

Type Default Description
Boolean false

true if a splitter divides the container into two horizontally arranged regions; otherwise, false.

#Remarks

Horizontal Split:

Split-Horizontally-True

Vertical Split

Split-Horizontally-False

While a Split View is active, changing the Horizontal property results in redisplaying the Split View. As such, the following events fire:

  1. GridSplitContainer.SplitViewHidden - Fires when the old Split View is destroyed.
  2. GridSplitContainer.SplitViewCreated - Fires when a new Split View is created, but before it is displayed.
  3. GridSplitContainer.SplitViewShown - Fires after the new Split View is displayed.

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