Class FNumericUpDownCellRenderer
Implements the enhanced NumericUpDown renderer.
Inheritance
Inherited Members
Namespace: Syncfusion.GridHelperClasses
Assembly: Syncfusion.GridHelperClasses.Windows.dll
Syntax
public class FNumericUpDownCellRenderer : GridNumericUpDownCellRenderer, IQueryFocusInside, IGridDropDownCell, IPopupParent, IPopupItem, IDisposable
Constructors
FNumericUpDownCellRenderer(GridControlBase, GridCellModelBase)
Initializes a new instance of the FNumericUpDownCellRenderer class.
Declaration
public FNumericUpDownCellRenderer(GridControlBase grid, GridCellModelBase cellModel)
Parameters
Type | Name | Description |
---|---|---|
GridControlBase | grid | The grid control. |
GridCellModelBase | cellModel | The cell model. |
Methods
OnButtonClicked(Int32, Int32, Int32)
Overridden to set the value that is being clicked.
Declaration
protected override void OnButtonClicked(int rowIndex, int colIndex, int button)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | rowIndex | Row index of a cell. |
System.Int32 | colIndex | Column index of a cell. |
System.Int32 | button | Index of a button that is clicked. |
Overrides
OnInitialize(Int32, Int32)
Initializes the NumericUpDown from the GridStyleInfo properties.
Declaration
protected override void OnInitialize(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
OnKeyDown(KeyEventArgs)
Overridden to handle the up and down key down.
Declaration
protected override void OnKeyDown(KeyEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.KeyEventArgs | e | The System.Windows.Forms.KeyEventArgs that contains the event data. |
Overrides
OnKeyPress(KeyPressEventArgs)
Overridden to allow digits,- sign(negative),.(10.2) while entering the numbers in any cell.
Declaration
protected override void OnKeyPress(KeyPressEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.KeyPressEventArgs | e | The System.Windows.Forms.KeyEventArgs that contains the event data. |
Overrides
OnLayout(Int32, Int32, GridStyleInfo, Rectangle, Rectangle[])
Specifies the layout for the Up and Down buttons
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 | The rectangle inner bounds. |
System.Drawing.Rectangle[] | buttonsBounds | The rectangle array of button bounds. |
Returns
Type | Description |
---|---|
System.Drawing.Rectangle | Layout for the up and down buttons. |