CustomDrawCell Of Grid Row (Оцветяване редовете в грид)

PHOTO EMBED

Mon Aug 22 2022 13:16:57 GMT+0000 (UTC)

Saved by @HristoT #c#

form./*some grid*/.CustomDrawCell += (s, e) =>
{
    var row = form./*some grid*/.GetRow(e.RowHandle) as XXX;
    if (row == null)
    {
        return;
    }

    if (row./*something*/)
    {
        e.Appearance.ForeColor = Color.Black;
        e.Appearance.BackColor = G_PatientStatusColor.C_Priet;
    }
};

# Червен
G_PatientStatusColor.C_ZaIzpisvane

# Зелен
G_PatientStatusColor.C_Priet

# Бледо син (редактиран)
G_PatientStatusColor.C_Chakasht
content_copyCOPY