Class GridEditorColumn
Provides the base implementation for all the editor columns in a SfDataGrid.
Implements
Inherited Members
Namespace: Syncfusion.SfDataGrid
Assembly: Syncfusion.SfDataGrid.iOS.dll
Syntax
public abstract class GridEditorColumn : GridColumn, IDisposable
Constructors
GridEditorColumn()
Initializes a new instance of the GridEditorColumn class.
Declaration
protected GridEditorColumn()
Properties
AllowNullValue
Gets or sets a value indicating whether the null values are allowed to the editor columns. When this property is enabled, NullValue or NullText will be set to the column, instead of the null value given by the user in edit mode.
Declaration
public bool AllowNullValue { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | True if the null value is allowed, otherwise false. The default value is false. |
Examples
GridNumericColumn numericColumn = new GridNumericColumn();
numericColumn.AllowNullValue = true;
MaxValue
Gets or sets the maximum value constraint of the column.
Declaration
public Decimal MaxValue { get; set; }
Property Value
Type | Description |
---|---|
System.Decimal | The maximum value constraint of the column. |
MinValue
Gets or sets the minimum value constraint of the column.
Declaration
public Decimal MinValue { get; set; }
Property Value
Type | Description |
---|---|
System.Decimal | The minimum value constraint of the column. |
NullText
Gets or sets a string that is displayed instead of null value if the cell value is null, provided that AllowNullValue is enabled.
Declaration
public string NullText { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string that is displayed instead of null value in the cell, provided that the NullValue is null. |
Remarks
The NullText is applied, when the AllowNullValue property is enabled and the NullValue is null.
Examples
GridNumericColumn numericColumn = new GridNumericColumn();
numericColumn.AllowNullValue = true;
numericColumn.NullText = "null";
NullValue
Gets or sets an object that is displayed instead of null value if the cell value is null, provided that AllowNullValue is enabled.
Declaration
public object NullValue { get; set; }
Property Value
Type | Description |
---|---|
System.Object | An object that is displayed instead of null value in the cell. |
Remarks
The NullValue is applied, when the AllowNullValue property is enabled.
Examples
GridNumericColumn numericColumn = new GridNumericColumn();
numericColumn.AllowNullValue = true;
numericColumn.NullValue = 0;
Methods
Dispose(Boolean)
Releases the unmanaged resources used by the component and optionally releases the managed resources.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | if true - release both managed and unmanaged resources; if false - release only unmanaged resources. |