Syncfusion.Grid.Windows
Example 


PaddingCharacter Property (GridMaskEditInfo)

Gets or sets the character that will be used instead of mask characters when the mask position has not been filled.
Syntax
'Declaration
 
<DescriptionAttribute("Specifies the character that will be used instead of mask characters when the mask position has not been filled.")>
<CategoryAttribute("StyleCategoryAppearance")>
<NotifyParentPropertyAttribute(True)>
<BrowsableAttribute(True)>
Public Property PaddingCharacter As Char
'Usage
 
Dim instance As GridMaskEditInfo
Dim value As Char
 
instance.PaddingCharacter = value
 
value = instance.PaddingCharacter
[Description("Specifies the character that will be used instead of mask characters when the mask position has not been filled.")]
[Category("StyleCategoryAppearance")]
[NotifyParentProperty(true)]
[Browsable(true)]
public char PaddingCharacter {get; set;}
Example
This example shows how to specify the character that will be used instead of mask characters when the mask position has not been filled.
this.gridControl1[4, 8].CellType = GridCellTypeName.MaskEdit;
 this.gridControl1[4, 8].MaskEdit.Mask = "###-###########";
 //sets the character that will be used instead of mask characters when the mask position has not been filled. 
this.gridControl1.TableStyle.MaskEdit.PaddingCharacter = 'T';
Me.gridControl1(4, 8).CellType = GridCellTypeName.MaskEdit
 Me.gridControl1(4, 8).MaskEdit.Mask = "###-###########"
'sets the character that will be used instead of mask characters when the mask position has not been filled. 
 Me.gridControl1.TableStyle.MaskEdit.PaddingCharacter = "T"c
AssemblyVersion

Syncfusion.Grid.Windows: 17.3460.0.14

See Also