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.
Unfortunately, activation email could not send to your email. Please try again.

Formatting CellValue

Thread ID:

Created:

Updated:

Platform:

Replies:

41211 Feb 24,2006 12:10 PM Feb 24,2006 12:44 PM Windows Forms 2
loading
Tags: GridControl
Kingsley
Asked On February 24, 2006 12:10 PM

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 12:24 PM

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 12:44 PM

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.

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.

;