Class CalendarCellRenderer
Implements a cell renderer for a Calendar cell.
Inheritance
System.Object
CalendarCellRenderer
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Syncfusion.GridHelperClasses
Assembly: Syncfusion.GridHelperClasses.Windows.dll
Syntax
public class CalendarCellRenderer : GridGenericControlCellRenderer, IQueryFocusInside, IGridDropDownCell, IPopupParent, IPopupItem, IDisposable
Constructors
CalendarCellRenderer(GridControlBase, GridCellModelBase)
Initializes a new instance of the CalendarCellRenderer class.
Declaration
public CalendarCellRenderer(GridControlBase grid, GridCellModelBase cellModel)
Parameters
| Type | Name | Description |
|---|---|---|
| GridControlBase | grid | The grid control. |
| GridCellModelBase | cellModel | The cell model. |
Methods
Dispose(Boolean)
Disposes the used object.
Declaration
protected override void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | disposing | Decides whether to dispose the object or not |
Overrides
InitializeControlText(Object)
Initialize the calendar.
Declaration
protected override void InitializeControlText(object controlValue)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | controlValue | Value to initialize. |
Overrides
OnActivated()
It is triggered when the cell is activated.
Declaration
protected override void OnActivated()
Overrides
OnDraw(Graphics, Rectangle, Int32, Int32, GridStyleInfo)
Draws the content of the cell.
Declaration
protected override void OnDraw(Graphics g, Rectangle clientRectangle, int rowIndex, int colIndex, GridStyleInfo style)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Drawing.Graphics | g | Graphics context. |
| System.Drawing.Rectangle | clientRectangle | Cell rectangle. |
| System.Int32 | rowIndex | Row index. |
| System.Int32 | colIndex | Column index. |
| GridStyleInfo | style | Cell style information. |
Overrides
OnHasFocusControlChanged()
Overridden to set the calendar location.
Declaration
protected override void OnHasFocusControlChanged()
Overrides
OnLayout(Int32, Int32, GridStyleInfo, Rectangle, Rectangle[])
Overridden to inflate the bound.
Declaration
protected override Rectangle OnLayout(int rowIndex, int colIndex, GridStyleInfo style, Rectangle innerBounds, Rectangle[] buttonsBounds)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | rowIndex | Row index of a cell. |
| System.Int32 | colIndex | Column index of a cell. |
| GridStyleInfo | style | Cell style. |
| System.Drawing.Rectangle | innerBounds | Rectangle of a cell. |
| System.Drawing.Rectangle[] | buttonsBounds | Bounds of a button in a cell. |
Returns
| Type | Description |
|---|---|
| System.Drawing.Rectangle | Inflated bounds. |
Overrides
OnSaveChanges()
Saves the changes to the Calendar cells in grid.
Declaration
protected override bool OnSaveChanges()
Returns
| Type | Description |
|---|---|
| System.Boolean | True if changes are done otherwise false. |
Overrides
Implements
System.IDisposable