其他分享
首页 > 其他分享> > gridview 合并单元格后,选中颜色重新绘制

gridview 合并单元格后,选中颜色重新绘制

作者:互联网

 1 gv_docargo.RowStyle += OnRowStyle;
 2 private void OnRowStyle(object sender, DevExpress.XtraGrid.Views.Grid.RowStyleEventArgs e)
 3 {
 4 
 5 if (e.RowHandle == gv_docargo.FocusedRowHandle)
 6 {
 7 
 8 e.Appearance.BackColor = Color.CornflowerBlue;
 9 e.Appearance.ForeColor = Color.White;
10 e.HighPriority = true;
11 
12 }
13 }

 

标签:gv,OnRowStyle,gridview,Color,单元格,Appearance,选中,docargo
来源: https://www.cnblogs.com/anyihen/p/12774963.html