Given a data structure of:
type Candidate = SalesRep of SalesRep | Analyst of Analyst
type ScorableCandidate = {
candidate: Candidate ;
mutable comments: string ;
mutable score: int ;
}
and a data grid that wants to be able to display either of the candidates, is it possible to bind (using the WPF binding) to the ScorableCandidate?
<telerik:GridViewDataColumn Header="First Name" DataMemberBinding="{Binding candidate.fname}" IsFilterable="False" Width="100"/>
I am thinking not, as the binding syntax would bneed to be able to deconstruct the type - which I don't think is possible.
Thx
T