private void TdgCreditos_FetchRowStyle(object sender, C1.Win.C1TrueDBGrid.FetchRowStyleEventArgs e) { string S = TdgCreditos.Columns["EstadoID"].CellText(e.Row).ToString(); if (S == "10") { e.CellStyle.BackColor = System.Drawing.Color.Red; } }
private void tdbg_liste_FetchRowStyle(object sender, C1.Win.C1TrueDBGrid.FetchRowStyleEventArgs e) { string S = "";// this.tdbg_liste.Columns["DESIGNATION"].CellText(e.Row).ToString(); if (S.Contains("Introuvable")) { e.CellStyle.BackColor = System.Drawing.Color.Red; } }
private void C1TrueDBGrid1_FetchRowStyle(object sender, C1.Win.C1TrueDBGrid.FetchRowStyleEventArgs e) { if (bflag == 1 && this.c1TrueDBGrid1.Columns["CustType"].CellValue(e.Row).ToString() == "1") { Font fntFont = new Font(e.CellStyle.Font.Name, e.CellStyle.Font.Size, FontStyle.Bold); e.CellStyle.Font = fntFont; e.CellStyle.ForeColor = System.Drawing.Color.Blue; } else if (bflag == 2 && this.c1TrueDBGrid1.Columns["CustType"].CellValue(e.Row).ToString() == "4") { e.CellStyle.ForeColor = System.Drawing.Color.White; e.CellStyle.BackColor = System.Drawing.Color.Red; } }