Professional UI Solutions
Site Map   /  Register


Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » Thousand separators in CExtGridCellNumber Collapse All
Subject Author Date
Denis Konovalov Apr 2, 2007 - 8:38 AM


I need to show numbers in grid cell without thousand separators.
But if i set thousand separator to empty string, grid cell get it from locale (space used).

If this is not a bug, then how can i disable this feature?


Technical Support Apr 2, 2007 - 11:54 AM

CExtGridCellNumber uses the information specified by the LCTYPE constant value LOCALE_STHOUSAND in the current locale. So you can use the SetLocaleInfo() method for changing this value. Please note you cannot specify the "" (empty) value using the SetThousandSeparator() method. This value is interpreted as the default value. Another way is to override the CExtGridCellNumber::OnQueryThousandSeparator( CExtSafeString & sVal ) virtual method and make the sVal parameter empty.