You can set the background color for the whole row header using e.BackgroundColor in BeforeResHeaderRender:
protected void DayPilotScheduler1_BeforeResHeaderRender(object sender, DayPilot.Web.Ui.Events.Scheduler.BeforeResHeaderRenderEventArgs e)
{
if (e.Id == "E")
{
e.BackgroundColor = "green";
}
}
To set the background color of individual columns you can use CSS. The columns are marked with CSS classes that include a column number, like .scheduler_default_rowheadercol0, .scheduler_default_rowheadercolq, .scheduler_default_rowheadercol2.
protected void DayPilotScheduler1_BeforeResHeaderRender(object sender, DayPilot.Web.Ui.Events.Scheduler.BeforeResHeaderRenderEventArgs e)
{
if (e.Id == "E")
{
e.CssClass = "my-row";
}
}
CSS:
.my-row.scheduler_default_rowheadercol0 {
background: red;
}
</pre.
See also:
https://doc.daypilot.org/scheduler/row-header-customization/
The ASP.NET version only supports the legacy mode.