You can use BeforeEventRender event handler:
protected void DayPilotMonth1_BeforeEventRender(object sender, DayPilot.Web.Ui.Events.Month.BeforeEventRenderEventArgs e)
{
string status = (string) e.DataItem["status"];
switch (status) {
case "Started":
e.BackgroundColor = "green";
break;
case "Closed":
e.BackgroundColor = "blue";
break;
// ...
}
}
It assumes that the status is in "status" field of the data set returned by the SqlDataSource.