Class Grid2007ExcelFilterCellRenderer
Implements the renderer part of a ExcelFilterCell.
Inheritance
Inherited Members
Namespace: Syncfusion.GridHelperClasses
Assembly: Syncfusion.GridHelperClasses.Windows.dll
Syntax
public class Grid2007ExcelFilterCellRenderer : GridHeaderCellRenderer, IQueryFocusInside, IGridDropDownCell, IPopupParent, IPopupItem, IDisposable
Constructors
Grid2007ExcelFilterCellRenderer(GridControlBase, GridCellModelBase)
Initializes a new Grid2007ExcelFilterCellRenderer object for the given GridControlBase and GridCellModelBase.
Declaration
public Grid2007ExcelFilterCellRenderer(GridControlBase grid, GridCellModelBase cellModel)
Parameters
Type | Name | Description |
---|---|---|
GridControlBase | grid | The GridControlBase that displays this cell renderer. |
GridCellModelBase | cellModel | The Grid2007ExcelFilterCellModel that holds data for this cell renderer that should be shared among views. |
Remarks
References to GridControlBase and GridCellModelBase will be saved.
Methods
Dispose(Boolean)
Clears all the resources.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | Indicates whether controls has to be disposed. |
Overrides
GetFilterBarChoices(GridTableCellStyleInfoIdentity)
Returns the unique choices to be displayed in the filterbar cell.
Declaration
public object[] GetFilterBarChoices(GridTableCellStyleInfoIdentity tableCellIdentity)
Parameters
Type | Name | Description |
---|---|---|
GridTableCellStyleInfoIdentity | tableCellIdentity | Table cell identifier. |
Returns
Type | Description |
---|---|
System.Object[] | Filter bar choices. |
GetFilterName(GridTableCellStyleInfo)
Determines the name of the filter based on the cell style information passed in.
Declaration
public string GetFilterName(GridTableCellStyleInfo sty)
Parameters
Type | Name | Description |
---|---|---|
GridTableCellStyleInfo | sty | cell style information. |
Returns
Type | Description |
---|---|
System.String | Name of the filter. |
GetUniqueGroupId(GridTableCellStyleInfoIdentity)
Returns an array of category keys for this group and all parent groups which is used by FilterBarCells and FilterBarSummary to compare whether the conditions should be applied to this group.
Declaration
public object[] GetUniqueGroupId(GridTableCellStyleInfoIdentity tableCellIdentity)
Parameters
Type | Name | Description |
---|---|---|
GridTableCellStyleInfoIdentity | tableCellIdentity | Cell identifier. |
Returns
Type | Description |
---|---|
System.Object[] | An array of category keys. |
OnDraw(Graphics, Rectangle, Int32, Int32, GridStyleInfo)
Used to draw the border line.
Declaration
protected override void OnDraw(Graphics g, Rectangle clientRectangle, int rowIndex, int colIndex, GridStyleInfo style)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | Graphics of a cell. |
System.Drawing.Rectangle | clientRectangle | Rectangle of a cell. |
System.Int32 | rowIndex | Row index of a cell. |
System.Int32 | colIndex | Column index of a cell. |
GridStyleInfo | style | Cell style. |
Overrides
OnDrawDisplayText(Graphics, Rectangle, Int32, Int32, GridStyleInfo)
Used to draw the filter icon.
Declaration
protected override void OnDrawDisplayText(Graphics g, Rectangle textRectangle, int rowIndex, int colIndex, GridStyleInfo style)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | Graphics of a cell. |
System.Drawing.Rectangle | textRectangle | Rectangle of a cell. |
System.Int32 | rowIndex | Row index of a cell. |
System.Int32 | colIndex | Column index of a cell. |
GridStyleInfo | style | Cell style. |
Overrides
OnMouseHoverEnter(Int32, Int32)
Overridden to invalidate the grid.
Declaration
protected override void OnMouseHoverEnter(int rowIndex, int colIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | rowIndex | Row index of a cell. |
System.Int32 | colIndex | Column index of a cell. |
Overrides
OnMouseHoverLeave(Int32, Int32, EventArgs)
Overridden to invalidate the grid range.
Declaration
protected override void OnMouseHoverLeave(int rowIndex, int colIndex, EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | rowIndex | Row index of a cell. |
System.Int32 | colIndex | Column index of a cell. |
System.EventArgs | e | The System.EventArgs that contains the event data. |