I know there are 100 questions about it, but I have not found an answer to this specific case.
I have an object that looks like this:
public string LogMessage { get; set; }
public DateTime Time { get; set; }
public string[] Params { get; set; }
and I want to bind this object to datagrid (each object will be a row and each variable will be cell)
I tried to bind like this:
DataGridTextColumn Log = new DataGridTextColumn();
DataGridTextColumn Time = new DataGridTextColumn();
DataGridTextColumn Params = new DataGridTextColumn();
win.Table.Columns.Add(Time);
win.Table.Columns.Add(Log);
win.Table.Columns.Add(Params);
Time.Binding = new Binding("Time");
Log.Binding = new Binding("LogMessage");
Params.Binding = new Binding("Params");
But the result of the Params column is of course:"String[] Array".
I need to know if there is some option to manipulate the data after the bind. Something like:
new Binding("Params").ToJson();
Thanks!