I’m trying to bind some data to a WPF listview. One of the properties of my data type is of type byte[] and I’d like it to be shown as a comma-delimited string, so for example { 12, 54 } would be shown as 12, 54 rather than as Byte[] Array. I think I want to make a custom DataTemplate but I’m not sure. Is that the best way? If so, how do I do it? If not, what is the best way?
EDIT: I only want to use this for one column – the other properties are displayed fine as they are.
I would suggest using a ValueConverter:
In your xaml, you’d add it to your binding like this: