ListCollectionView customsort
-
Hi All, I have a wpf usercontrol listview with checkboxes. When I sort items on this listview by clicking any of the column of the listview, the checkboxes will be unselected. I am using ListCollectionView's cutomsort property.If I have selected more than two items then after sorting only one item will be selected and remaining checkboxes will be unselected. I am fully confusion who is making them to unselect the checkboxes after sorting. Can any one can help me for solving this issue?
-
Hi All, I have a wpf usercontrol listview with checkboxes. When I sort items on this listview by clicking any of the column of the listview, the checkboxes will be unselected. I am using ListCollectionView's cutomsort property.If I have selected more than two items then after sorting only one item will be selected and remaining checkboxes will be unselected. I am fully confusion who is making them to unselect the checkboxes after sorting. Can any one can help me for solving this issue?
Remember, in the WPF ListView, containers are destroyed & re-created by default. If your checkboxes (or any other control) are not data-bound, they will lose state. You'll even see the checkboxes get unchecked if you scroll the item out of view far enough.
-
Hi All, I have a wpf usercontrol listview with checkboxes. When I sort items on this listview by clicking any of the column of the listview, the checkboxes will be unselected. I am using ListCollectionView's cutomsort property.If I have selected more than two items then after sorting only one item will be selected and remaining checkboxes will be unselected. I am fully confusion who is making them to unselect the checkboxes after sorting. Can any one can help me for solving this issue?
Cold we see the code that does the sorting, and I assume that the checkboxes are binded no?
-
Cold we see the code that does the sorting, and I assume that the checkboxes are binded no?