I have a field in a DataGrid, bound to a value (Item.Amount), now inside the style for that field editor, i would like to bind the Format field to Item.QuantityDecimalPoints.
But I cannot seem to be able to go up the tree to the same Item that the record is bound to.
I have tried the following:
Format="{Binding Path=QuantityDecimalPoints, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type DBO:Item}}}"
And
Format="{Binding Path=QuantityDecimalPoints, RelativeSource={RelativeSource PreviousData}}"