简体   繁体   English

虚拟列表视图不检查在GUI中不可见的项目

[英]Virtual list view not checking items that are not visible in GUI

I have a virtual list view and each row has a checkbox , I have a master checkbox that checks all the rows in the grid, this works fine until I filter some of the rows (all rows currently unchecked) and then load back all rows into the list view and then click my master checkbox to select all rows, all rows appear selected until I scroll down and then the rows I filtered are not selected but the rest are. 我有一个virtual list view ,每一行都有一个checkbox ,我有一个主复选框,可以检查网格中的所有行,在我过滤掉某些行(当前未选中的所有行)然后将所有行加载回之前,它可以正常工作列表视图,然后单击我的主复选框以选择所有行,所有行都显示为选中状态,直到我向下滚动,然后未选中我过滤的行,其余的行都被选中。 Now this sounds like an obvious bug but if I make my window bigger so I can see at least one of the rows that was filtered and then click the master checkbox the visible row is now checked in other words rows that are not on screen that were previously filtered remain unchecked while rows that were not filtered and were not on screen are checked. 现在,这听起来像是一个明显的错误,但是如果我将窗口放大,以便可以看到至少被过滤的行之一,然后单击主复选框,则将检查可见行,换句话说,屏幕上未显示的行之前未过滤的行保持未选中状态,而未过滤且不在屏幕上的行被选中。

Any ideas why this would be? 任何想法为什么会这样?

Thanks 谢谢

It appears that when you filter the rows an attribute or o flag changes that prevents the master checkbox to select them. 看来,当您过滤行时,属性或o标志会更改,从而阻止主复选框选中它们。 Try posting some of your code to help us. 尝试发布一些代码以帮助我们。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM