Hi,
i use a ultratimelineview with a week primary interval.
utlvCalendrier.AdditionalIntervals.Add(new Infragistics.Win.UltraWinSchedule.DateInterval(1, DateIntervalUnits.Months)); utlvCalendrier.AdditionalIntervals[0].HeaderTextFormat = @"MMMM yyyy"; utlvCalendrier.PrimaryInterval = new Infragistics.Win.UltraWinSchedule.DateInterval(1, DateIntervalUnits.Days); utlvCalendrier.PrimaryInterval.HeaderTextFormat = @"dd"; utlvCalendrier.ColumnWidth = 46; utlvCalendrier.NonWorkingHourAppearance.BackColor = Color.FromArgb(224, 224, 224);
In my control, all week starts at Sunday. I would like to change it for Monday. How can i do that ?
Thanks
the last code was for Day interval .. the one i use for Week interval is :
utlvCalendrier.AdditionalIntervals.Clear();
utlvCalendrier.AdditionalIntervals.Add(new Infragistics.Win.UltraWinSchedule.DateInterval(1, DateIntervalUnits.Months)); utlvCalendrier.AdditionalIntervals[0].HeaderTextFormat = @"MMMM yyyy"; utlvCalendrier.PrimaryInterval = new Infragistics.Win.UltraWinSchedule.DateInterval(1, DateIntervalUnits.Weeks); utlvCalendrier.PrimaryInterval.HeaderTextFormat = @"dd"; utlvCalendrier.ColumnWidth = 80;
I found it
utlvCalendrier.AdditionalIntervals.Clear(); utlvCalendrier.AdditionalIntervals.Add(new Infragistics.Win.UltraWinSchedule.DateInterval(1, DateIntervalUnits.Months)); utlvCalendrier.AdditionalIntervals[0].HeaderTextFormat = @"MMMM yyyy"; DateInterval dt = new Infragistics.Win.UltraWinSchedule.DateInterval(1, DateIntervalUnits.Weeks); dt.SynchronizingDate = new DateTime(1753, 1, 1); // 1753-01-01 is monday utlvCalendrier.PrimaryInterval = dt; utlvCalendrier.PrimaryInterval.HeaderTextFormat = @"dd"; utlvCalendrier.ColumnWidth = 80;