Checkbox multiples dans un Gridview
Bonjour,
Au sein d'un Gridview, je remonte diverses valeurs, et dans un champ appelé Coding profil, j'affiche ces champs avec une Checkbox cochée ou non selon leur état dans une table. Mes bindings fonctionnent.
par contre, il m'est impossible de sélectionner ou déselectionner une ou plusieurs checkbox dans cette colonne Coding profil S'IL Y A plusieurs checkbox sur ma ligne.
S'il n'y a qu'une seule checkbox, la sélection/déselection est alors possible.
Voici mon bout de code :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
| <StormGridView:StormGridViewColumn Header="Coding Profil" DataMemberBinding="{Binding}" Width="*">
<StormGridView:StormGridViewColumn.CellTemplate>
<DataTemplate>
<Grid>
<ListBox ItemsSource="{Binding Path=P59_MEDIA}" ScrollViewer.VerticalScrollBarVisibility="Auto" ScrollViewer.HorizontalScrollBarVisibility="Disabled" Margin="5" Theme:StyleManager.Style="ListBoxWrapPanel_Style">
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<StormContainers:WrapPanel />
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
<ListBox.ItemTemplate>
<DataTemplate>
<CheckBox Theme:StyleManager.Style="" IsChecked="{Binding Path=P58_IS_SELECTED, Mode=TwoWay}" Margin="8 0 0 0" Content="{Binding Path=P56_NAME_CODING_PROFIL}"></CheckBox>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
<ListBox ItemsSource="{Binding Path=P64_IMAGE}" ScrollViewer.VerticalScrollBarVisibility="Auto" ScrollViewer.HorizontalScrollBarVisibility="Disabled" Margin="5" Theme:StyleManager.Style="ListBoxWrapPanel_Style">
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<StormContainers:WrapPanel />
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
<ListBox.ItemTemplate>
<DataTemplate>
<CheckBox Theme:StyleManager.Style="" IsChecked="{Binding Path=P63_IS_SELECTED, Mode=TwoWay}" Margin="8 0 0 0" Content="{Binding Path=P61_NAME_CODING_PROFIL}"></CheckBox>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
</Grid>
</DataTemplate>
</StormGridView:StormGridViewColumn.CellTemplate>
</StormGridView:StormGridViewColumn>
</StormGridView:StormGridView.Columns> |
Quelqu'un voit-il ce qui peut provoquer ce comportement ?
D'avance merci et bonne journée