Class PivotRowExpandCellRenderer
Implements the renderer part for an expandable row header cell in a GridDataBoundGrid. The expandable row header cell will display a '+' for expanded rows and a '-' for collapsed rows similar to a TreeControl.
Inherited Members
Namespace: Syncfusion.Windows.Forms.PivotAnalysis
Assembly: Syncfusion.PivotAnalysis.Windows.dll
Syntax
public class PivotRowExpandCellRenderer : GridCellRendererBase, IQueryFocusInside, IGridDropDownCell, IPopupParent, IPopupItem, IDisposable
Constructors
PivotRowExpandCellRenderer(GridControlBase, GridCellModelBase)
Initializes a new instance of the PivotRowExpandCellRenderer class with the specified GridControlBase and GridCellModelBase.
Declaration
public PivotRowExpandCellRenderer(GridControlBase grid, GridCellModelBase cellModel)
Parameters
Type | Name | Description |
---|---|---|
GridControlBase | grid | The instance of GridControlBase class that displays this cell renderer. |
GridCellModelBase | cellModel | The instance of GridCellModelBase class that holds data for this cell renderer that should be shared among views. |
Remarks
References to GridControlBase and GridControlBase will be saved.
Methods
OnLayout(Int32, Int32, GridStyleInfo, Rectangle, Rectangle[])
This method is called from PerformLayout to calculate the client rectangle given the inner rectangle of a cell and any boundaries of cell buttons.
Declaration
protected override Rectangle OnLayout(int rowIndex, int colIndex, GridStyleInfo style, Rectangle innerBounds, Rectangle[] buttonsBounds)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | rowIndex | The row index. |
System.Int32 | colIndex | The column index. |
GridStyleInfo | style | The GridStyleInfo object that holds cell information. |
System.Drawing.Rectangle | innerBounds | The System.Drawing.Rectangle with the inner bounds of a cell. |
System.Drawing.Rectangle[] | buttonsBounds | An array of System.Drawing.Rectangle with bounds for each cell button element. |
Returns
Type | Description |
---|---|
System.Drawing.Rectangle | A System.Drawing.Rectangle with the bounds. |
Overrides
OnPrepareViewStyleInfo(GridPrepareViewStyleInfoEventArgs)
Raises the PrepareViewStyleInfo event.
Declaration
public override void OnPrepareViewStyleInfo(GridPrepareViewStyleInfoEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
GridPrepareViewStyleInfoEventArgs | e | The GridPrepareViewStyleInfoEventArgs instance holds the event data. |
Overrides
Remarks
OnPrepareViewStyleInfo(GridPrepareViewStyleInfoEventArgs) is called from PrepareViewStyleInfo in order to allow custom formatting of a cell by changing its style object.
Set the cancel property true if you want to avoid the associated cell renderer object OnPrepareViewStyleInfo(GridPrepareViewStyleInfoEventArgs) method to be called.
Changes made to the style object will not be saved in the grid nor cached. This event is called every time a portion of the grid is repainted and the specified cell belongs to the invalidated region of the window that needs to be redrawn.
Changes to the style object done at this time will also not be reflected when accessing cells though the models indexer. See QueryCellInfo.
note
Do not change base style or cell type at this time.