本文介绍了Devexpress Xtragrid行背景颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我已经尝试了很多改变行背景颜色 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 i + = 1 循环 但似乎什么都没有用,任何人都可以I have tried a lot to change the row background colorDo 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 += 1Loopbut nothing seems to work, can anyone推荐答案我在这里找到答案并简单提问 验证内容后Devexpress XtraGrid设置行颜色 http://www.devexpress.com/Support/Center/Question/Details/Q487748I Found the answer here and question in simpleDevexpress XtraGrid Set Row Color after validating the contentshttp://www.devexpress.com/Support/Center/Question/Details/Q487748 这篇关于Devexpress Xtragrid行背景颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 08-15 21:46