如何更改devexpressgrid中所选行的颜色 [英] how to change the color of selected row in devexpressgrid

查看:1362
本文介绍了如何更改devexpressgrid中所选行的颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是DevExpress网格的新手。选择一行时,我需要更改网格中的一行颜色。



有人可以发布一些代码来实现上述方案。



提前感谢

解决方案

如果我是你,我会改变GridView.Appearance.FocusedRow.BackColor和GridView.Appearance.SelectedRow.BackColor属性。这将强制GridControl选择此颜色来绘制所选行的背景。


I am new to DevExpress grid. I need to change the color of a row in the grid when a row is selected.

Can someone please post some code to achieve the above scenario..

Thanks in advance..

解决方案

If I were you, I would change the GridView.Appearance.FocusedRow.BackColor and GridView.Appearance.SelectedRow.BackColor properties. This will force the GridControl to choose this color to paint the background of a selected row.

这篇关于如何更改devexpressgrid中所选行的颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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