六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 2141|回复: 0

cxGrid失去焦点后如何继续保持选中单元的高亮状态

[复制链接]

升级  34.33%

93

主题

93

主题

93

主题

举人

Rank: 3Rank: 3

积分
303
 楼主| 发表于 2013-1-1 22:28:50 | 显示全部楼层 |阅读模式
cxGrid失去焦点后如何继续保持选中单元的高亮状态

<div id="cnblogs_post_body">cxGrid失去焦点后如何继续保持选中单元的高亮状态,找了好久才找到一个答案:
Solution
There is no need to adjust those options. The solution is very simple: You should define a new style (an Item of the Style Controller) which defines the necessary colors for highlighting and use it both for the View's Styles.Inactive and Styles.Selection properties.
NOTE: Make sure to set the View's OptionsSelection.HideSelection option to False. Otherwise, the selection highlighting will be hidden when the Grid is inactive.
测试通过
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表