I have the following code :
private void dgvStatus_DataBindingComplete(object sender, DataGridViewBindingCompleteEventArgs e) { foreach (DataGridViewRow
protected void grdDataListeDetay_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { if (e.Row.Cells[3].Text != "0") { for (int i = 0; i <= e.Row.Cells.Count - 1; i++) { e.Row.Cells[i].BackColor = System.Drawing.Color.Beige; } } } }