Hi,
I have a business object which contains a fixed size collection of pattern values which I need to display within a single gridviewrow.
So the gridviewcolumn definition in xaml looks like:
So far everything works perfectly.
The problem is that I need to specify a custom cell style which depends on a single pattern and not the whole business object.
But DataContext within a cell style or template always refers to the business object, so I'm not able to access the bound pattern anymore.
Is there any way to access the value of the DataMemberBinding from within a cell style or template ?
Thanks in advance
I have a business object which contains a fixed size collection of pattern values which I need to display within a single gridviewrow.
So the gridviewcolumn definition in xaml looks like:
<rad:GridViewDataColumn DataMemberBinding="{Binding Path=DigitPatterns[0], Mode=OneWay}" /> <rad:GridViewDataColumn DataMemberBinding="{Binding Path=DigitPatterns[1], Mode=OneWay}" /> <rad:GridViewDataColumn DataMemberBinding="{Binding Path=DigitPatterns[2], Mode=OneWay}" />
So far everything works perfectly.
The problem is that I need to specify a custom cell style which depends on a single pattern and not the whole business object.
But DataContext within a cell style or template always refers to the business object, so I'm not able to access the bound pattern anymore.
Is there any way to access the value of the DataMemberBinding from within a cell style or template ?
Thanks in advance