如何在 devexpress xtraGrid 中模拟列标题单击?
您好,我的表单上有一个 devexpress 网格。我在其中一列上启用增量搜索。但我发现每次执行一次搜索时都需要单击列标题。有没有办法在网格控件中模拟此类标题或列单击?
我还尝试在 gridcontrol_keydown 事件中设置焦点行,但这只有效一次,执行一次搜索后,我需要再次单击列标题或列,否则增量搜索不再起作用。
谢谢!
Hi I have a devexpress grid on the form. I enable the incremental search on one of the columns. But I find I need to click the column header each time when I perform one search. Is there a way to simulate such header or column click in grid control?
I also try in gridcontrol_keydown event to set the focused row, but this one only works for once, after performing one search, I need to click the column header or the column again, otherwise the incremental search doesn't work anymore.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
只需单击列(或单元格)即可将焦点设置到要在其下搜索数据的列。可以通过编程方式聚焦列。使用 ColumnView.FocusedColumn 属性。
The column (or cell) click is required only to set focus to the column under which you want to search data. It is possible to focus a column programmatically. Use the ColumnView.FocusedColumn property.