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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

format data for a column

Thread ID:





11442 Mar 5,2004 03:46 PM UTC Mar 5,2004 04:03 PM UTC WinForms 1
Tags: GridControl
Asked On March 5, 2004 03:46 PM UTC

I want to disply data with a format for a column in a GridDataBoundGrid control. e.g. Telepone or SSN. (206) 123-4567 or 123-45-6789. But these data are in foramt 1234567 or 123456789 in dataset. Can I use a mask on a column to format it? Thanks

Administrator [Syncfusion]
Replied On March 5, 2004 04:03 PM UTC

Yes, you shoul dbe able to do this. The excludeliterals setting is what allows teh raw data not to have teh formatting characters. Dim style3 as GridStyleInfo = Me.Grid.GridBoundColumns("PhoneNumber").StyleInfo style3.CellType = "MaskEdit" maskedEditStyle3.AllowPrompt = False maskedEditStyle3.ClipMode = Syncfusion.Windows.Forms.Tools.ClipModes.ExcludeLiterals style3.CultureInfo = New System.Globalization.CultureInfo("en-US") maskedEditStyle3.DateSeparator = "-"c maskedEditStyle3.Mask = "(999) 999 - 9999" style3.MaxLength = 16 maskedEditStyle3.SpecialCultureValue = Syncfusion.Windows.Forms.Tools.SpecialCultureValues.None style3.Text = "(___) ___ - ____" maskedEditStyle3.UseLocaleDefault = False maskedEditStyle3.UseUserOverride = True The first may need to be Dim style3 as GridStyleInfo = Me.Grid.Binder.InternalColumns("PhoneNumber").StyleInfo if you have not explicitly added GridBoundColumns.


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

This page will automatically be redirected to the 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

Live Chat Icon For mobile
Live Chat Icon