Class GridNumericUpDownCellModel
Defines the data / model part of a numeric up / down cell that lets users increase and decrease values with spin buttons.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Grid
Assembly: Syncfusion.Grid.Windows.dll
Syntax
public class GridNumericUpDownCellModel : GridTextBoxCellModel, ISerializable, IDisposable
Remarks
You typically access cell models through the CellModels property of the GridModel class.
A GridNumericUpDownCellModel can serve as model for several GridNumericUpDownCellRenderer instances if there are several GridControlBase views for a GridModel.
See GridNumericUpDownCellRenderer for more detailed information about this cell type.
Constructors
GridNumericUpDownCellModel(GridModel)
Initializes a new GridNumericUpDownCellModel object and stores a reference to the GridModel this cell belongs to.
Declaration
public GridNumericUpDownCellModel(GridModel grid)
Parameters
Type | Name | Description |
---|---|---|
GridModel | grid | The GridModel for this cell model. |
Remarks
You typically access cell models through the CellModels property of the GridModel class.
GridNumericUpDownCellModel(SerializationInfo, StreamingContext)
Initializes a new GridNumericUpDownCellModel from a serialization stream.
Declaration
protected GridNumericUpDownCellModel(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | An object that holds all the data needed to serialize or de_serialize this instance. |
System.Runtime.Serialization.StreamingContext | context | Describes the source and destination of the serialized stream specified by info. |
Properties
AcceptAlphaKeys
Gets or sets a value indicating whether NumericUpDown cell should accept Alpha keys
Declaration
public bool AcceptAlphaKeys { get; set; }
Property Value
Type |
---|
System.Boolean |
Examples
The following code shows how to get a reference to the Model and change this property:
GridNumericUpDownCellModel cm = (GridNumericUpDownCellModel) this.gridControl1.CellModels["NumericUpDown"];
cm.AcceptAlphaKeys = false;
Dim cm As GridNumericUpDownCellModel = CType(Me.gridControl1.CellModels("NumericUpDown"), GridNumericUpDownCellModel)
cm.AcceptAlphaKeys = False
Methods
CreateRenderer(GridControlBase)
Creates a renderer for this cell model.
Declaration
public override GridCellRendererBase CreateRenderer(GridControlBase control)
Parameters
Type | Name | Description |
---|---|---|
GridControlBase | control | The grid GridControlBase control. |
Returns
Type | Description |
---|---|
GridCellRendererBase | Cell renderer. |