Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
315
How change first day of primary interval with UltraTimelineView control
posted

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  

Parents
  • 315
    Offline posted

    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;

Reply Children
No Data