Apply a converter to MappingName

When binding to individual properties of a model you can easily apply a comverter to the property with something like {Binding Name, Converter={StaticResource StringToAllCaps}}. I wondered if there is something similar available for this when mapping straight to the property value doesn't give the intended output. Some examples I can think of is with DateTimes or decimals.

In short, is this achieveable through XAML or would I need to add new properties to the model I'm binding to and set the MappingName directly to that?

3 Replies

SR Sivakumar R Syncfusion Team February 19, 2020 09:22 AM UTC

Hi Liam, Your requirement can be achieved using DisplayBinding property in GridColumn. Refer below user guide which has code example for the same, 
  
Thanks, 
Sivakumar 



LK Liam Keogh February 19, 2020 01:56 PM UTC

That's absolutely excellent, Sivakumar. Thank you.


MK Muthu Kumaran Gnanavinayagam Syncfusion Team February 20, 2020 09:20 AM UTC

Hi Liam,  
  
Thanks for the update.  
  
We are glad to know that the reported query has been resolved at your end. Please let us know if you have any further queries on this. We are happy to help you.  
  
Regards,  
G.Muthu kumaran. 

Loader.
Up arrow icon