IBE.EDDB_Data.EDCommodityListView.dataGridView1_CellPainting C# (CSharp) Méthode

dataGridView1_CellPainting() private méthode

private dataGridView1_CellPainting ( object sender, System.Windows.Forms.DataGridViewCellPaintingEventArgs e ) : void
sender object
e System.Windows.Forms.DataGridViewCellPaintingEventArgs
Résultat void
        private void dataGridView1_CellPainting(object sender, DataGridViewCellPaintingEventArgs e)
        {
            if (e.ColumnIndex >= 4 && e.RowIndex >= 0)
                if (int.Parse(e.FormattedValue.ToString()) <= 0)
                    e.CellStyle.BackColor = Color.LightCoral;
        }