GridControl 更变行显示样式
/// <summary>/// 更变显示样式
/// </summary>
private void gridView1_CustomDrawCell(object sender, DevExpress.XtraGrid.Views.Base.RowCellCustomDrawEventArgs e)
{
if (e.Column.FieldName == "Enabled")
{
GridCellInfo GridCellInfo = e.Cell as GridCellInfo;
if (GridCellInfo.IsDataCell && double.Parse(GridCellInfo.CellValue.ToString()) == 0)
e.Appearance.BackColor = Color.Yellow;//当会员已停用时用黄色显示
}
}
页:
[1]