Class ButtonEditCellRenderer
Implements the renderer part for the ButtonEditCellRenderer
Inheritance
Inherited Members
Namespace: Syncfusion.GridHelperClasses
Assembly: Syncfusion.GridHelperClasses.Windows.dll
Syntax
public class ButtonEditCellRenderer : GridTextBoxCellRenderer, IQueryFocusInside, IGridDropDownCell, IPopupParent, IPopupItem, IDisposable
Constructors
ButtonEditCellRenderer(GridControlBase, GridTextBoxCellModel)
Initializes a new instance of the ButtonEditCellRenderer class for the given GridControlBase and ButtonEditCellModel class.
Declaration
public ButtonEditCellRenderer(GridControlBase grid, GridTextBoxCellModel cellModel)
Parameters
Type | Name | Description |
---|---|---|
GridControlBase | grid | The GridControlBase that display this cell renderer. |
GridTextBoxCellModel | cellModel | The ButtonEditCellModel that holds data for this cell renderer that should be shared among views. |
Remarks
References to GridControlBase, /// and GridTextBoxCellModel 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 Syncfusion.Windows.Forms.Grid.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. |