HI
When the grid is bound to a collection (ObservableCollection) and SelectionMode is set to Multiple a check box appears in the header allowing you to select/deselect all rows.
If you then clear the collection through code the rows are removed (as expected) but the check box remains ticked. Whilst I could see that this could be interpredeted both ways (If the is nothing there then it is indeterminate at to whether everything is selected or not) if you then add another item to the collection the header check box is still ticked but the new row is not. This does not seem to be correct. Personally I would have thought the check box should be automatically unchecked (and maybe even disabled) if there are no items in the underlying data source.
Thanks
Russell Mason
When the grid is bound to a collection (ObservableCollection) and SelectionMode is set to Multiple a check box appears in the header allowing you to select/deselect all rows.
If you then clear the collection through code the rows are removed (as expected) but the check box remains ticked. Whilst I could see that this could be interpredeted both ways (If the is nothing there then it is indeterminate at to whether everything is selected or not) if you then add another item to the collection the header check box is still ticked but the new row is not. This does not seem to be correct. Personally I would have thought the check box should be automatically unchecked (and maybe even disabled) if there are no items in the underlying data source.
Thanks
Russell Mason