We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Trying to format a cell

Thread ID:





127837 Dec 12,2016 04:30 PM UTC Dec 13,2016 01:52 PM UTC WinForms 1
Tags: GridDataBoundGrid(Classic)
Dave Wheeliker
Asked On December 12, 2016 04:30 PM UTC

I am trying to format a cell so that when a user inputs a new record the cell (Postcode) allows only correct formatting though.  I have tried this myself with 'cell type' set to masked edit but this just put the mask into the cell ie. 'LL00 0LL' using widows masking.  Any help would be appreciated.


Piruthiviraj Malaimelraj [Syncfusion]
Replied On December 13, 2016 01:52 PM UTC

Hi Dave, 

Thanks for your interest in Syncfusion products. 

We have analyzed your scenario and created the simple sample as per your requirement. To set the mask for the particular column , Mask property of GridMaskEditInfo can be used. Please make use of the below code, 

Code example: 
this.gridDataBoundGrid1.Model.ColStyles["Description"].CellType = GridCellTypeName.MaskEdit; 
this.gridDataBoundGrid1.Model.ColStyles["Description"].MaskEdit.Mask = "##-##-##"; 
Sample link: 
Dashboard sample location: 
<InstalledLocation\Syncfusion\EssentialStudio\VersionNumber\Windows\Grid.Windows\Samples\Cell Types\Editor Cell Demo> 

If we misunderstood anything from your scenario, please provide us with screenshots of your application which shows what you want to achieve. 



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon