I have a DataGrid with a collection of parameters, each of which have properties for name and a value. Each parameters' value can be one of a multitude of units (ft, btuh, kw, currency, string, unit less double, etc.) How do I format the data grid rows to display the value with the units and a unit dependent rounding factor? See below for an example.
The DataGrid can reference different object classes with different collections of parameters so the solution has to be dynamic. Maybe add a Units enum to the parameter class and then somehow read that from the DataGrid and format the row accordingly?

One approach I would take would be make a converter. I've made you one just to pitch the idea but you should probably modify it to suit your needs.
As it uses the
MarkupExtension, you can just place it in the binding of the cellHowever, if you want different units depending on the value, you could also Bind the unit to another property such of each element.
Let's you are displaying a collection of
DataItemwhere each one has aTitle,Result,Unit. Then, you bind one column to theTitleand the other one to theResult, such likeHope this points to the solution.