Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用 devexpress XtraGrid 和自动行功能。在我看到的文档中:“您还可以指定是在更改值后立即应用过滤还是仅在最终用户按下 ENTER 键时应用过滤。” 我想实现第二种行为,但我没有找到任何属性。那么我怎样才能实现这种行为呢?谢谢
在 KeyDown 事件处理程序上,使用下面的代码
if (e.KeyCode == Keys.Enter) { // Your filter code. }
如果您需要更多帮助,请更具体。(发布一些代码等)