Example #1
0
        private void LstCreditos_FetchRowStyle(object sender, C1.Win.C1List.FetchRowStyleEventArgs e)
        {
            string S = LstCreditos.Columns["EstadoID"].CellText(e.Row).ToString();

            if (S == "10")
            {
                e.CellStyle.BackColor = System.Drawing.Color.Red;
            }
        }
Example #2
0
        private void C1List1_FetchRowStyle(object sender, C1.Win.C1List.FetchRowStyleEventArgs e)
        {
            if (bFlag1 && Int32.Parse(this.C1List1.Columns["CustType"].CellText(e.Row)) == 1)
            {
                Font fntFont = new Font(e.CellStyle.Font.Name, e.CellStyle.Font.Size, FontStyle.Bold);
                e.CellStyle.Font      = fntFont;
                e.CellStyle.ForeColor = Color.Blue;
            }

            if (bFlag2 && Int32.Parse(this.C1List1.Columns["CustType"].CellText(e.Row)) == 4)
            {
                e.CellStyle.ForeColor = Color.White;
                e.CellStyle.BackColor = Color.Red;
            }
        }