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
210
Ultra Day View - show a week across the top
posted

I am new to the Calendar controls.  I simply want to show a week across the top of a form and allow the user to select a day and perform a refresh to a grid below it.  I have attached a simple picture of what I would like to do below.  thanks

 

  • 69832
    Offline posted

    Add the dates to be selected to the UltraDayView.CalendarInfo.SelectedDateRanges collection; one overload of the Add method lets you specify whether to clear the existing selection, so you pass true for that for the first call and false for each subsequent date to be added. Note that this can cause a visual update with each call, so if you want to prevent painting until the whole selection is applied, call BeginUpdate beforehand and EndUpdate afterward.