我可以在网格控件中选择文本并放置光标以突出显示它吗?

发布于 2025-01-07 16:25:55 字数 279 浏览 7 评论 0原文

我有一个 devexpress 网格控件。我自己编写了一个搜索功能,通过查找每个行单元格中的选定值来找出匹配的行单元格值(尽管网格控件有自己的增量搜索功能,但我不想使用它,因为这需要关注列并单击该列。)

现在我有行单元格值 AAB,我正在搜索 AA,我希望当我键入第一个“A”时,“AAB”的第一个“A”上有一个突出显示我希望光标出现在第一个“A”后面;然后我输入第二个“A”,我希望“AAB”中的“AA”突出显示,并且光标移动到“AA”的右侧......

我可以在devexpress网格控件中这样做吗?谢谢!

I have a devexpress grid control. I have a search functionality written by myself to find out the matched row cell value by looking the selected value in each row cell (though grid control has its own incremental search function, I don't want to use that because that requires a focus on a column and a click on the column.)

Now I have the row cell value AAB, I am searching AA, and I hope when I type the first "A", there is a highlight on the first "A" of "AAB" and I wish a cursor appears behind the first "A"; Then I type the second "A", I hope "AA" of "AAB" is highlighted and the cursor shifts to the right of "AA"...

Can I do such in devexpress grid control? Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

逐鹿 2025-01-14 16:25:55

gridControl 目前不支持此功能,但您可以获得有关此内容的更多信息,并可以尝试使用以下链接来实现它:
所有列的增量搜索
搜索网格(列)而不进行过滤
基于组行文本的增量搜索

This is not supported in gridControl right now, but you can get more information about this and can try to implementing it using these following links:
Incremental Search on All Columns
Searching a grid (column) without filtering
Incremental search based upon group row texts

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文