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
There's really nothing to it. Place an UltraCalendarCombo on the form with the grid. Then set the column's EditorControl property to the UltraCalendarCombo.
Yes, you are right, I meant the other calendar :)
So to get this right, I have to overwrite the cell's editor and drop down that other control?
Can I do that simply by changing the editor's type to UltraCalendarCombo? Because I know that the grid supports only some controls automaticaly, I struggled for a few days to get an UltraGrid to drop down when I activate a cell.
Thank you for your reply.
GigiDolar said:Is there any way to change the dayLook (like the one of a Infragistics.Win.UltraWinEditors.UltraDateTimeEditor) of a Infragistics.Win.DateTimeEditor?
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).