Class GridMaskColumn
Represents a column that formats the text using mask expression and loads MaskedEditBox in edit mode.
Inherited Members
Namespace: Syncfusion.WinForms.DataGrid
Assembly: Syncfusion.SfDataGrid.WinForms.dll
Syntax
public class GridMaskColumn : GridColumn, IDisposable, IFilterDefinition
Examples
// Triggering the EditingControlShowing event.
GridMaskColumn column = new GridMaskColumn();
column.MappingName = "PhoneNumber";
column.Mask="(###)-###-####";
sfDataGrid1.Columns.Add(column);
Constructors
GridMaskColumn()
Initializes a new instance of the GridMaskColumn class.
Declaration
public GridMaskColumn()
Properties
DateSeparator
Gets or sets the character that separates the components of date,that is, day ,month and year in GridMaskColumn.
Declaration
public char DateSeparator { get; set; }
Property Value
Type | Description |
---|---|
System.Char | The character that separates the components of date,that is, day ,month and year in GridMaskColumn. |
DecimalSeparator
Gets or sets the character that separates groups of digits to the left of the decimal in values.
Declaration
public char DecimalSeparator { get; set; }
Property Value
Type | Description |
---|---|
System.Char | The character that separates groups of digits to the left of the decimal in values. |
Mask
Gets or sets the input mask expression to use at runtime.
Declaration
public string Mask { get; set; }
Property Value
Type |
---|
System.String |
See Also
MaskFormat
Declaration
public ClipModes MaskFormat { get; set; }
Property Value
Type |
---|
ClipModes |
PromptCharacter
Declaration
public char PromptCharacter { get; set; }
Property Value
Type |
---|
System.Char |
TimeSeparator
Gets or sets the character that separates the components of time, that is, the hour, minutes and seconds.
Declaration
public char TimeSeparator { get; set; }
Property Value
Type | Description |
---|---|
System.Char | The character that separates the components of time, that is, the hour, minutes and seconds. |
Methods
GetFormattedValue(Object, Object)
Overridden to get the formatted display text.
Declaration
protected override object GetFormattedValue(object record, object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | record | A record value. |
System.Object | value | Display text value. |
Returns
Type | Description |
---|---|
System.Object | Returns the formatted value. |