The event handler receives an argument of type BeforeRowRegionSplitEventArgs containing data related to this event. The following BeforeRowRegionSplitEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Cancel (Inherited from System.ComponentModel.CancelEventArgs) | |
NewRowScrollRegion | The new row scroll region (read-only) |
OriginalRowScrollRegion | The original row scroll region (read-only) |
The originalrowscrollregion argument returns a reference to a RowScrollRegion object that can be used to set properties of, and invoke methods on, the rowscrollregion as it exists before the split. You can use this reference to access any of the returned rowscrollregion's properties or methods. However, the Height property of this rowscrollregion is read-only in this event procedure.
The newrowscrollregion argument returns a reference to a RowScrollRegion object that can be used to set properties of, and invoke methods on, the rowscrollregion as it will exist after the split. You can use this reference to access any of the returned rowscrollregion's properties or methods. However, the Height property of this rowscrollregion is read-only in this event procedure.
The cancel argument enables you to programmatically prevent the rowscrollregion from being split. This argument can be used to prevent the user from splitting the rowscrollregion unless a certain condition is met.
This event is generated before a rowscrollregion is split, either programmatically, or by user interaction. A rowscrollregion can be split programmatically by invoking its Split method.
The BeforeRowRegionRemoved event is generated before a rowscrollregion is removed.
The BeforeRowRegionSize event is generated before a rowscrollregion is sized.
The BeforeColRegionSplit event is generated before a colscrollregion is split.
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2