Hi,

I just realised that in a cWebGrid I really should be using OnDefineRowCssClass, but it doesn't work, however OnDefineCssClass (as per the code below) does work in columns which should only be used in a cWebForm.


Code:
Application.css

#OWEBAPP .Day.Sun{
    background-color: rgb(225, 254, 255);
}
#OWEBAPP .Day.Mon{
    background-color: rgb(251, 240, 230);
}
#OWEBAPP .Day.Tue{
    background-color: rgb(240, 253, 234);
}
#OWEBAPP .Day.Wed{
    background-color: rgb(241, 240, 211);
}
#OWEBAPP .Day.Thu{
    background-color: rgb(247, 248, 253);
}
#OWEBAPP .Day.Fri{
    background-color: rgb(250, 234, 255);
}
#OWEBAPP .Day.Sat{
    background-color: rgb(251, 217, 222);
}



OnLoad within cWebGrid:

            Procedure OnLoad
                Forward Send OnLoad
                Set psCSSClass of oScheddtlDAY to "Day"
            End_Procedure


OnDefineCssClass within cWebColumn:

                Procedure OnDefineCssClass String ByRef sCSSClass
                    Forward Send OnDefineCssClass (&sCSSClass)
                    
                    If (Scheddtl.DAY = "Sun") Move "Sun" to sCSSClass
                    Else If (Scheddtl.DAY = "Mon") Move "Mon" to sCSSClass
                    Else If (Scheddtl.DAY = "Tue") Move "Tue" to sCSSClass
                    Else If (Scheddtl.DAY = "Wed") Move "Wed" to sCSSClass
                    Else If (Scheddtl.DAY = "Thu") Move "Thu" to sCSSClass
                    Else If (Scheddtl.DAY = "Fri") Move "Fri" to sCSSClass
                    Else If (Scheddtl.DAY = "Sat") Move "Sat" to sCSSClass
                End_Procedure