DataGridViewNumericUpDownCell
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.1.0.0)
Displays an editable NumericUpDown control in a DataGridViewCell cell when in edit mode.
- C#
- VB.NET
public class DataGridViewNumericUpDownCell : DataGridViewCell
Public Class DataGridViewNumericUpDownCell
Inherits DataGridViewCell
Constructors
DataGridViewNumericUpDownCell()
Initializes a new instance of DataGridViewNumericUpDownCell.
Properties
CellRenderer
String: Returns the name of the cell renderer to use on the client side to render the cell. If it's null or empty it defaults to "Cell".
The name of the cell renderer can be a fully qualified class name (i.e. "wisej.web.datagrid.cellRenderer.Cell") or just the class name (i.e. "ImageCell") in which case the client library prepends "wisej.web.datagrid.cellRenderer".
DecimalPlaces
Int32: Returns or sets the number of decimal places to display in the spin column (also known as an up-down column).
Value: The number of decimal places to display in the spin column. The default is 0.
Throws:
- ArgumentOutOfRangeException The value assigned is less than 0; or the value assigned is greater than 99.
EditType
Type: Returns the type of the cell's hosted editing control.
Value: A Type representing the DataGridViewNumericUpDownEditingControl type.
HideUpDownButtons
Boolean: Returns or sets the visibility of the spinner buttons.
Increment
Decimal: Returns or sets the value to increment or decrement the spin column (also known as an up-down column) when the up or down buttons are clicked.
Value: The value to increment or decrement the Value property when the up or down buttons are clicked on the spin column. The default value is 1.
Throws:
- ArgumentOutOfRangeException The assigned value is not greater than or equal to zero.
Maximum
Decimal: Returns or sets the maximum value for the spin column (also known as an up-down column).
Value: The maximum value for the spin column. The default value is 100.
Minimum
Decimal: Returns or sets the minimum allowed value for the spin column (also known as an up-down column).
Value: The minimum allowed value for the spin column. The default value is 0.
ThousandsSeparator
Boolean: Returns or sets whether a thousands separator is displayed in the spin column (also known as an up-down column) when appropriate.
Value: true if a thousands separator is displayed in the spin column when appropriate; otherwise, false. The default value is false.
ValueType
Type: Returns or sets the data type of the values in the cell.
Value: A Type representing the data type of the value in the cell.
Methods
InitializeEditingControl(editor, style)
Initializes the control used to edit the cell.
| Parameter | Type | Description |
|---|---|---|
| editor | Control | The Control that is used to edit the cell. |
| style | DataGridViewCellStyle | The DataGridViewCellStyle that is in effect for the cell entering edit mode. |
Throws:
- ArgumentNullException editor is null.
Implements
| Name | Description |
|---|---|
| IUserData | Provides access to the UserData and Tag properties associated to the component implementing this interface. |
| ICommandSource | Defines an object that can invoke a Command. |