Hello!
I'm not sure what I'm missing here.
I have a RadGridView with the following structure:
| <Controls:RadGridView x:Name="radGridView" |
| ScrollMode="RealTime" |
| ShowGroupPanel="False" |
| CanUserReorderColumns="False" |
| CanUserDeleteRows="False" |
| CanUserInsertRows="False" |
| Grid.Row="1" |
| ItemsSource="{Binding Metadata}" |
| AutoGenerateColumns="False" |
| ShipMonitoring:DataInfoHeaderMenu.IsEnabled="True"> |
| <Controls:RadGridView.Columns> |
| <Controls:GridViewDataColumn DataMemberBinding="{Binding Name}" |
| Header="Symbol" |
| IsReadOnly="True" /> |
| <Controls:GridViewDataColumn DataMemberBinding="{Binding ClearName}" |
| Header="Name" |
| IsReadOnly="True" /> |
| <Controls:GridViewDataColumn DataMemberBinding="{Binding Description}" |
| Header="Description" |
| IsReadOnly="True" /> |
| <Controls:GridViewDataColumn DataMemberBinding="{Binding Source}" |
| Header="Source" |
| IsReadOnly="True" /> |
| <Controls:GridViewDataColumn DataMemberBinding="{Binding Unit}" |
| Header="Unit" |
| IsReadOnly="True" /> |
| <Controls:GridViewDataColumn DataMemberBinding="{Binding Category}" |
| Header="Category" |
| IsReadOnly="True" /> |
| <Controls:GridViewDataColumn Header="Select " |
| IsReadOnly="True" |
| DataMemberBinding="{Binding Used}"> |
| <Controls:GridViewDataColumn.CellTemplate> |
| <DataTemplate> |
| <CheckBox IsChecked="{Binding Used, Mode=TwoWay}" |
| HorizontalAlignment="Center" |
| Checked="DataInfo_CheckedUnchecked" |
| Unchecked="DataInfo_CheckedUnchecked" /> |
| </DataTemplate> |
| </Controls:GridViewDataColumn.CellTemplate> |
| </Controls:GridViewDataColumn> |
| </Controls:RadGridView.Columns> |
| </Controls:RadGridView> |
the "Metadata" from binding represents a List<Metadata> where Metadata object has this "Used" field represented by a checkbox.
In DataInfoHeaderMenu I can choose to select or deselect all rows in the radGridView
I retrieve the metadata list from grid view
(List<Metadata>)radGridView , I iterate over it and set for each object Used = true.
the problem is that this should have as a result all check-boxes checked but id doesn't!
Please help!
Roxana