Back to Devexpress

GridSplitContainer.SplitViewCreated Event

windowsforms-devexpress-dot-xtragrid-dot-gridsplitcontainer-dcbc0aeb.md

latest3.9 KB
Original Source

GridSplitContainer.SplitViewCreated Event

Fires before a Split View is displayed or before its orientation is changed.

Namespace : DevExpress.XtraGrid

Assembly : DevExpress.XtraGrid.v25.2.dll

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

Declaration

csharp
[DXCategory("Split")]
public event EventHandler SplitViewCreated
vb
<DXCategory("Split")>
Public Event SplitViewCreated As EventHandler

Event Data

The SplitViewCreated event's data class is EventArgs.

Remarks

After an end-user activates a Split View or after the GridSplitContainer.ShowSplitView method is called, the following events fire:

  1. SplitViewCreated - fires after the Split View is created, but before it is displayed. You can handle this event to perform additional customization of the grid control’s (GridSplitContainer.Grid and GridSplitContainer.SplitChildGrid) being split, without any flickering effect.
  2. GridSplitContainer.SplitViewShown - fires after the Split View has been displayed.

If the Split View is active and you toggle the GridSplitContainer.Horizontal property, the following events fire:

  1. GridSplitContainer.SplitViewHidden
  2. SplitViewCreated
  3. GridSplitContainer.SplitViewShown

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the SplitViewCreated event.

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.

winforms-grid-split-presentation/CS/Form1.cs#L29

csharp
gridSplitContainer.Initialize();
gridSplitContainer.SplitViewCreated += new EventHandler(gridSplitContainer_SplitViewCreated);

winforms-grid-split-presentation/VB/Form1.vb#L31

vb
gridSplitContainer.Initialize()
AddHandler gridSplitContainer.SplitViewCreated, AddressOf gridSplitContainer_SplitViewCreated

See Also

HideSplitView()

ShowSplitView()

SplitViewCreated

SplitViewHidden

SplitViewShown

GridSplitContainer Class

GridSplitContainer Members

DevExpress.XtraGrid Namespace