设定焦点并突出显示 [英] Setting focus and highlight

查看:89
本文介绍了设定焦点并突出显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



谁能告诉我,如果从网格中删除了一行,该如何关注网格中的下一个项目.如果删除的项目是网格中的最后一个项目,请集中在上一个项目上.

与treeview相同.表示关注与已删除项目相同级别的下一个项目(如果已删除项目是此级别的最后一个项目,则关注上一个项目).如果已删除的项目是此级别上唯一的项目,请专注于父项.

在此先感谢

[edit]紧急情况已删除-OriginalGriff [/edit]

Hi,

can anyone tell me how to focus on the next item in the grid if a row is deleted from grid. If the deleted item is the last in a grid ,focus on the previous item.

and same for treeview. means focus on the next item at the same level as the deleted item (or the previous item, if the deleted item was the last at this level). If the deleted item was the only one at this level, focus on the parent.

Thanks in advance

[edit]Urgency deleted - OriginalGriff[/edit]

推荐答案

尝试dataGridView1.Rows[Rowindex].Selected = true;;


这篇关于设定焦点并突出显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆