You can format the GridTextColumn by using GridTextColumn.DisplayBinding. You can either use the Binding.StringFormat property (only for WPF) or Binding.Converter for formatting the GridTextColumn. GridTextColumn formats the data based on the InvariantCulture. To format based on the system’s regional settings, CurrentCulture, use the Converter as given in the following code. The Converter is defined to convert the decimal values based on CurrentCulture.
Converter is set to the GridTextColumn.DisplayBinding to format the column based on CurrentCulture instead of InvariantCulture.
You can use the GridNumericColumn to format the decimal values based on the CurrentCulture, by default.
Sample Links:
|
This page will automatically be redirected to the sign-in page in 10 seconds.