Hi,
I've got a RadGridView bound to an observable collection, I want to apply a DataTrigger style based on the IsAlternating value of the the row.
I've wired up the IsAlternating field to the grid (see xaml below) to see what value it is populating and it is always false.
<telerik:GridViewDataColumn Header="Is Alternating"
DataMemberBinding="{Binding IsAlternating, RelativeSource={RelativeSource AncestorType={x:Type telerik:GridViewRow}}}" Width="100"
HeaderTextAlignment="Center" TextAlignment="Center" />
So if I had 10 items in my collection, I would see 10 rows in my grid and the Is Alternating column display's false every time.
Am I misunderstanding what IsAlternating is used for?
I was under the impression that I would get something like (which is what I want)
Is Alternating
False
True
False
True
False
True
False
True
False
True
i.e. every other row would indicate if it is alternating or not.
Is there a property that I can bind which will tell me if a row is alternating or not?
Thanks and regards,
Chris
I've got a RadGridView bound to an observable collection, I want to apply a DataTrigger style based on the IsAlternating value of the the row.
I've wired up the IsAlternating field to the grid (see xaml below) to see what value it is populating and it is always false.
<telerik:GridViewDataColumn Header="Is Alternating"
DataMemberBinding="{Binding IsAlternating, RelativeSource={RelativeSource AncestorType={x:Type telerik:GridViewRow}}}" Width="100"
HeaderTextAlignment="Center" TextAlignment="Center" />
So if I had 10 items in my collection, I would see 10 rows in my grid and the Is Alternating column display's false every time.
Am I misunderstanding what IsAlternating is used for?
I was under the impression that I would get something like (which is what I want)
Is Alternating
False
True
False
True
False
True
False
True
False
True
i.e. every other row would indicate if it is alternating or not.
Is there a property that I can bind which will tell me if a row is alternating or not?
Thanks and regards,
Chris