This is a migrated thread and some comments may be shown as answers.

Change ToolTip of Calendar

1 Answer 91 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Eric
Top achievements
Rank 1
Eric asked on 16 Mar 2010, 08:10 PM
As I am iterating through the days, I am changing the back color of those days with scheduled events on them. I would like to change the default tool tip to also show a subject from the event. Here is what I have so far. It shows the default tool tip of the date as I mouse over. Is there a way to change that?

foreach(var row in rows) 
            { 
                e.Day.IsSelected = true
                e.Day.ToolTip = row["rSubject"].ToString(); 
                e.Cell.BackColor = System.Drawing.Color.LightGray; 
            } 

1 Answer, 1 is accepted

Sort by
0
Eric
Top achievements
Rank 1
answered on 16 Mar 2010, 08:15 PM
My fault. I found the answer. Here it is for anyone else:

e.Cell.ToolTip = row["rSubject"].ToString();

instead of

e.Day.ToolTip = row["rSubject"].ToString();

My fault.....

Thanks, 
Tags
Calendar
Asked by
Eric
Top achievements
Rank 1
Answers by
Eric
Top achievements
Rank 1
Share this question
or