Hi,
Yes, I have access to the property via a related object Item.
e.g. line.
Item.AllowDecimal
.. ItemSource={Binding Lines} />
<telerik:GridViewDataColumn Header="Qty"
DataMemberBinding="{Binding Quantity,
Converter={StaticResource formattedDecimalConverter},
ConverterParameter={Binding Item.AllowDecimal}}" />
But I am getting an error:
"Operation is not valid due to the current state of the object."
--- OR even when I use an extended Property "AllowDecimal", error still persists: ---
public partial class Line {
public bool
AllowDecimal
{
get { return
this.Item != null && this.Item.UnitOfMeasure != null && this.Item.UnitOfMeasure.AllowDecimal; }
}
}
that is binded to a converter Parameter:
<telerik:GridViewDataColumn Header="Qty"
DataMemberBinding="{Binding Quantity,
Converter={StaticResource formattedDecimalByUoMConverter},
ConverterParameter={Binding AllowDecimal}}" />
How can I make it work?
Thanks