Devexpress Xtragrid行背景颜色 [英] Devexpress Xtragrid Row Background Color
问题描述
我已经尝试了很多改变行背景颜色
Do While i< GridView1.RowCount
Dim row As DataRow = GridView1.GetDataRow(i)
检查row.Item(Engine#)是否重复,如果重复更改行颜色
GridView1.SelectRow(i)
GridView1.Appearance.SelectedRow.BackColor = Color.Black
'GridView1.Appearance.FocusedRow.BackColor = Color.AliceBlue
< br $>
i + = 1
循环
但似乎什么都没有用,任何人都可以
I have tried a lot to change the row background color
Do While i < GridView1.RowCount
Dim row As DataRow = GridView1.GetDataRow(i)
Check if row.Item(Engine #) is duplicate & if duplicate change the row color
GridView1.SelectRow(i)
GridView1.Appearance.SelectedRow.BackColor = Color.Black
'GridView1.Appearance.FocusedRow.BackColor = Color.AliceBlue
i += 1
Loop
but nothing seems to work, can anyone
推荐答案
我在这里找到答案并简单提问
验证内容后Devexpress XtraGrid设置行颜色
http://www.devexpress.com/Support/Center/Question/Details/Q487748
I Found the answer here and question in simple
Devexpress XtraGrid Set Row Color after validating the contents
http://www.devexpress.com/Support/Center/Question/Details/Q487748
这篇关于Devexpress Xtragrid行背景颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!