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
815
DayLook for the cell's Infragistics.Win.DateTimeEditor
posted

Hello,

Is there any way to change the dayLook (like the one of a Infragistics.Win.UltraWinEditors.UltraDateTimeEditor) of a Infragistics.Win.DateTimeEditor?

I need the dropdown calendar that appears when editing a DateTime cell to show different appearances for some date ranges (i.e from 06.20.2009 to 06.30.2009 i need my day's to have a blue background).

Is this possible? If so, how?

Thank you

Parents
No Data
Reply
  • 69832
    Suggested Answer
    Offline posted

    GigiDolar said:
    Is there any way to change the dayLook (like the one of a Infragistics.Win.UltraWinEditors.UltraDateTimeEditor) of a Infragistics.Win.DateTimeEditor?

    I don't follow this, because the control (UltraDateTimeEditor) and the editor (DateTimeEditor) both use the same .NET MonthCalendar control for the dropdown portion, which is not customizable in the fashion you describe.

    You should assign an Infragistics.Win.UltraWinSchedule.UltraCalendarCombo control to the column's EditorControl property, then use the UltraCalendarCombo.CalendarLook.GetDayLook method to obtain a DayLook object for a particular date. Once you have that, you can set properties on the DayLook.Appearance (for example, set the BackColor property to Color.Blue).

Children