positioning data added to a CalendarControl day cell

G

Guest

I'm loading a calendar with data from a database. It seems that the default
formatting of a celll places the date number vertically in the second 3rd of
the date cell, with the top and bottom thirds as blank.

I need to have the day number in the upper left corner, the data I'm adding
right below that and no blank bottom third, to keep the calendar smaller.

Any suggestions on how to format this data would be appreciated.

In day RenderEvent I'm adding data:

Label lblAM = new Label();
lblAM.Text = " a:" + (int)dr["RideCountAM"];
e.Cell.Controls.Add( lblAM );
Label lblPM = new Label();
lblPM.Text = " p:" + (int)dr["RideCountPM"];
e.Cell.Controls.Add( lblPM );
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top