Search This Blog

Friday, November 30, 2012

Calendar show weekend disable in c#




Calendar show weekend disable.

     //code for day is weekend so disable to select event that day.
            if (e.Day.IsWeekend)
            {
                e.Cell.BackColor = System.Drawing.Color.White;
                e.Cell.ForeColor = System.Drawing.Color.Brown;
                e.Day.IsSelectable = false;
                e.Cell.Text = "Holyday";
            }

No comments :