BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
<!-- GridNumericColumn with FomatString -->
<syncfusion:GridNumericColumn Width="160"
FormatString="C"
HeaderText="Annual Income"
MappingName="Income" /> |
public MainPage()
{
this.InitializeComponent();
CultureInfo.CurrentCulture = new System.Globalization.CultureInfo("de-DE");
} |
public class FormatConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, string language)
{
var columnValue = System.Convert.ToDecimal(value);
return columnValue.ToString("C", new System.Globalization.CultureInfo("de-DE").NumberFormat);
}
public object ConvertBack(object value, Type targetType, object parameter, string language)
{
throw new NotImplementedException();
}
} |
<syncfusion:GridNumericColumn Width="160"
DisplayBinding="{Binding Income, Converter={StaticResource formatConverter}}"
HeaderText="Annual Income"
MappingName="Income" /> |