Change ToolTip of Calendar

2 posts, 0 answers
  1. chabian
    chabian avatar
    62 posts
    Member since:
    Sep 2005

    Posted 16 Mar 2010 Link to this post

    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; 
                } 

  2. chabian
    chabian avatar
    62 posts
    Member since:
    Sep 2005

    Posted 16 Mar 2010 Link to this post

    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, 
Back to Top