标签:res col 背景 view end exp appear 偶数 cells
private void gridView1_RowCellStyle(object sender, DevExpress.XtraGrid.Views.Grid.RowCellStyleEventArgs e)
{
//偶数行奇数列||奇数行偶数列
if ( e.RowHandle != gridView1.FocusedRowHandle &&
((e.RowHandle % 2 == 0 && e.Column.VisibleIndex % 2 == 1) ||
( e.Column.VisibleIndex % 2 == 0 && e.RowHandle % 2 == 1)) )
e.Appearance.BackColor = Color.AliceBlue;
}
标签:res col 背景 view end exp appear 偶数 cells
原文地址:https://www.cnblogs.com/aj407blogs/p/10208269.html