The rows are defined using Resources property in DayPilotSchedulerDynamic. It's a collection of DayPilot.Web.Ui.Resource objects. The sample declarative definition looks like this:
<DayPilot:DayPilotScheduler ID="DayPilotScheduler1" runat="server" ...
>
<Resources>
<DayPilot:Resource Name="Room A" Value="A" />
<DayPilot:Resource Name="Room B" Value="B" />
...
You can also fill the collection dynamically in Page_Load:
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
DayPilotScheduler1.Resources.Add("One", "1");
DayPilotScheduler1.Resources.Add("Two", "2");
DayPilotScheduler1.Resources.Add("Three", "3");
}
}