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

Formatting CellValue

Thread ID:

Created:

Updated:

Platform:

Replies:

41211 Feb 24,2006 05:10 PM UTC Feb 24,2006 05:44 PM UTC WinForms 2
loading
Tags: GridControl
Kingsley
Asked On February 24, 2006 05:10 PM UTC

A cell value contain phone numbers and I want to format the values as (xxx)-xxx-xxxx. Please how do I achieve this?

stanleyj [Syncfusion]
Replied On February 24, 2006 05:24 PM UTC

Hi Kingsly, Use MaskEdit CellType and take a look at the sample in \Syncfusion\Essential Studio\4.1.0.50\windows\Grid.Windows\Samples\CellTypes\MaskEditCells folder. GridStyleInfo style = gridControl1[2, 2]; style.CellType = "MaskEdit"; style.MaskEdit.Mask = "(999)-999-9999"; Regards, Stanley

Kingsley
Replied On February 24, 2006 05:44 PM UTC

Thanks, your sample works fine. >Hi Kingsly, > >Use MaskEdit CellType and take a look at the sample in \Syncfusion\Essential Studio\4.1.0.50\windows\Grid.Windows\Samples\CellTypes\MaskEditCells folder. > > GridStyleInfo style = gridControl1[2, 2]; > style.CellType = "MaskEdit"; > style.MaskEdit.Mask = "(999)-999-9999"; > >Regards, >Stanley

CONFIRMATION

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.

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

;