C1.Win.C1FlexGrid Namespace > C1FlexGridBase Class : BeforePageBreak Event |
'Declaration
<C1DescriptionAttribute("Fires while the control is being printed to provide control over page breaks.")> Public Event BeforePageBreak As RowColEventHandler
'Usage
Dim instance As C1FlexGridBase Dim handler As RowColEventHandler AddHandler instance.BeforePageBreak, handler
[C1Description("Fires while the control is being printed to provide control over page breaks.")] public event RowColEventHandler BeforePageBreak
[C1Description("Fires while the control is being printed to provide control over page breaks.")] public: event RowColEventHandler^ BeforePageBreak
This event is fired while the control is being printed with the PrintGrid(String,PrintGridFlags) method to provide control over page breaks.
Set the Cancel parameter to true to indicate that the given Row should not be printed at the top of a page. In this case, the control will move the break point up and fire the event again until it finds a valid break point. Note that you can only prevent page breaks, not force them.
Target Platforms: 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