I have to format numbers to a user defined precision; I created a binding to a property where precision is stored:
Binding precisionBinding;
precisionBinding = new Binding("Item.Format[" + column.UniqueName + "].Precision");
precisionBinding.Mode = BindingMode.OneWay;
precisionBinding.Converter = new PrecisionConverter();
and set CellStyle:
cellStyle.Setters.Add(new Setter(GridViewCell.ContentStringFormatProperty, precisionBinding));
but format returned by PrecisionConverter() is ignored at all.
Thanks
Binding precisionBinding;
precisionBinding = new Binding("Item.Format[" + column.UniqueName + "].Precision");
precisionBinding.Mode = BindingMode.OneWay;
precisionBinding.Converter = new PrecisionConverter();
and set CellStyle:
cellStyle.Setters.Add(new Setter(GridViewCell.ContentStringFormatProperty, precisionBinding));
but format returned by PrecisionConverter() is ignored at all.
Thanks