DevExpress에서 GridView의 행의 색을 바꾸는 것는 방법이다.
private void gridView1_RowCellStyle(object sender, DevExpress.XtraGrid.Views.Grid.RowCellStyleEventArgs e)
{
for (int i = 0; i < dataSet1.Tables[0].Rows.Count; i++)
{
if (IsDisposal(gridView1, e.RowHandle))
e.Appearance.BackColor = Color.Red;
}
}
private bool IsDisposal(DevExpress.XtraGrid.Views.Grid.GridView gridView1, int row)
{
string val = Convert.ToString(gridView1.GetRowCellValue(row, “Disposal”));
return (val == “True”);
}