This question is locked. New answers and comments are not allowed.
I'm trying to bind a column in my Grid to a custom Float wrapper. The whole goal is to get the field to show null if the object is null and if it's not null, then show its value property via Float.GetFloat().
I'm getting these values from a WCF service.
SourceHoldings is a type SomeService.Float, and I want to display its property (via GetFloat()) as the value. How do I achieve this?
I'm getting these values from a WCF service.
SourceHoldings is a type SomeService.Float, and I want to display its property (via GetFloat()) as the value. How do I achieve this?
<tlk:GridViewDataColumn DataMemberBinding="{Binding SourceHoldings}" Width="80" DataFormatString="{}:n0}" TextAlignment="Right" UniqueName="SourceHoldings" >
<tlk:GridViewDataColumn.Header>
<TextBlock Text="Holdings (Broker)" TextWrapping="Wrap" />
</tlk:GridViewDataColumn.Header>
</tlk:GridViewDataColumn>