DataGridTemplateColumn.CellEditingTemplate + ListBox items filtered

Topics: Bug Report Forum, User Forum
Feb 9, 2009 at 5:52 PM
Edited Feb 10, 2009 at 9:48 PM
I have a datagrid that represents a number of objects represented by each row. Each row has a column that can have multiple values so I am trying to use a checked listbox.  The listbox contains a list of objects, some selected(checked) and some not.  For some reason, the listbox displays only the items that are selected(checked).  For testing purposes, I have a second listbox that is defined outside of the grid - this listbox shows all records with the appropriate items selected.

                    <tk:DataGridTemplateColumn x:Name="InjuryComplaintColumn" Header="Injury/Complaint" MinWidth="150">
                                <TextBlock Text="{Binding ConditionSummary}" x:Name="ConditionSummaryTextBlock"/>
                                    <ListBox x:Name="ConditionListBox" SelectionMode="Multiple"  MinHeight="200" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
                                             ItemsSource="{Binding ConditionChartItems}">
                                                <CheckBox x:Name="ConditionCheckBox" IsChecked="{Binding IsSelected}" Content="{Binding DataValue}" />

Does anyone know why the listbox would only show those items selected when inside the grid?