This gets the cell and not the row
if (e.Column.Name == colSupplierOrderNumber.Name)
{
if (View.GetRowCellValue(e.RowHandle, colSupplierOrderNumber).ToString() != "")
{
int SupplierOrderNumber = Convert.ToInt32(View.GetRowCellValue(e.RowHandle,
colSupplierOrderNumber));
if (SupplierOrderNumber != 0)
{
e.Appearance.BackColor = Color.Crimson;
e.Appearance.ForeColor = Color.White;
}
}
}