FlexGrid for WinForms
BeforePageBreak Event



Fires while the control is being printed to provide control over page breaks.
Syntax
'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
Remarks

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.

Requirements

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

See Also

Reference

C1FlexGridBase Class
C1FlexGridBase Members

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Send Feedback