Class GroupedHeaderCellRenderer
Implements the Data or model part for grouped header cell renderer.
Inheritance
Inherited Members
Namespace: Syncfusion.Windows.Forms.Grid.Grouping
Assembly: Syncfusion.Grid.Grouping.Windows.dll
Syntax
public class GroupedHeaderCellRenderer : GridHeaderCellRenderer, IQueryFocusInside, IGridDropDownCell, IPopupParent, IPopupItem, IDisposable
Constructors
GroupedHeaderCellRenderer(GridControlBase, GridCellModelBase)
Initializes a new instance of the GroupedHeaderCellRenderer class wit the specified instance of the GridControlBase and GridCellModelBase classes.
Declaration
public GroupedHeaderCellRenderer(GridControlBase grid, GridCellModelBase cellModel)
Parameters
Type | Name | Description |
---|---|---|
GridControlBase | grid | An instance of the GridControlBase class. |
GridCellModelBase | cellModel | An instance of the GridCellModelBase class. |
Methods
OnButtonClicked(Int32, Int32, Int32)
Overrides and triggered on button click.
Declaration
protected override void OnButtonClicked(int rowIndex, int colIndex, int button)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | rowIndex | The row index. |
System.Int32 | colIndex | The column index. |
System.Int32 | button | The clicked button. |
Overrides
OnDrawCellButton(GridCellButton, Graphics, Int32, Int32, Boolean, GridStyleInfo)
Determine the draw cell button.
Declaration
protected override void OnDrawCellButton(GridCellButton button, Graphics g, int rowIndex, int colIndex, bool bActive, GridStyleInfo style)
Parameters
Type | Name | Description |
---|---|---|
GridCellButton | button | Draw cell button |
System.Drawing.Graphics | g | Graphics |
System.Int32 | rowIndex | Row index |
System.Int32 | colIndex | Col index |
System.Boolean | bActive | Active |
GridStyleInfo | style | Style |
Overrides
OnDrawDisplayText(Graphics, Rectangle, Int32, Int32, GridStyleInfo)
Overrides and draws the display text.
Declaration
protected override void OnDrawDisplayText(Graphics g, Rectangle textRectangle, int rowIndex, int colIndex, GridStyleInfo style)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | The instance of the System.Drawing.Graphics class. |
System.Drawing.Rectangle | textRectangle | The inner bounds of the cell. |
System.Int32 | rowIndex | Row index. |
System.Int32 | colIndex | Column index. |
GridStyleInfo | style | An instance of the GridStyleInfo that holds the values of style properties. |
Overrides
OnGetCursor(Int32, Int32)
Overrides and gets the cursors.
Declaration
protected override Cursor OnGetCursor(int rowIndex, int colIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | rowIndex | Row index. |
System.Int32 | colIndex | Column index. |
Returns
Type | Description |
---|---|
System.Windows.Forms.Cursor | Cursor indication. |
Overrides
OnLayout(Int32, Int32, GridStyleInfo, Rectangle, Rectangle[])
Overrides and raises the rectangle layout.
Declaration
protected override Rectangle OnLayout(int rowIndex, int colIndex, GridStyleInfo style, Rectangle innerBounds, Rectangle[] buttonsBounds)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | rowIndex | Row index. |
System.Int32 | colIndex | Column index. |
GridStyleInfo | style | An instance of the GridStyleInfo that holds the values of style properties. |
System.Drawing.Rectangle | innerBounds | Inner cell bounds. |
System.Drawing.Rectangle[] | buttonsBounds | Buttons bounds. |
Returns
Type | Description |
---|---|
System.Drawing.Rectangle | The layout cell bounds. |
Overrides
OnMouseDown(Int32, Int32, MouseEventArgs)
Determine the mouse down events.
Declaration
protected override void OnMouseDown(int rowIndex, int colIndex, MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | rowIndex | Row index |
System.Int32 | colIndex | Col index |
System.Windows.Forms.MouseEventArgs | e | Event args |
Overrides
OnMouseHover(Int32, Int32, MouseEventArgs)
Overrides and triggered the System.Windows.Forms.Control.MouseHover event is done.
Declaration
protected override void OnMouseHover(int rowIndex, int colIndex, MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | rowIndex | Row index. |
System.Int32 | colIndex | Column index. |
System.Windows.Forms.MouseEventArgs | e | The System.Windows.Forms.MouseEventArgs contains the event data. |
Overrides
OnMouseHoverLeave(Int32, Int32, EventArgs)
Overrides and triggered when the MouseHover leave event ends.
Declaration
protected override void OnMouseHoverLeave(int rowIndex, int colIndex, EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | rowIndex | Row index. |
System.Int32 | colIndex | Column index. |
System.EventArgs | e | The System.EventArgs contains the event data. |
Overrides
OnPushButtonClick(Int32, Int32)
Triggered when the PushButtonClick event is done if the user presses the PushButton.
Declaration
protected virtual void OnPushButtonClick(int rowIndex, int colIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | rowIndex | The row index. |
System.Int32 | colIndex | The column index. |