I have an UltraGrid bound to an UltraDataSource. One of the fields (DateOfBirth) is a date field. When the user clicks the "down" arrow to the right of the date (to pop up the calendar), it always defaults to 1/1/2001 (rather than the date in the cell) and then changes the date in the cell to 1/1/2001 once it has "popped up".
How do I get the UltraGrid to show the correct date (on the pop-up calendar) based on what is in the cell? For example, if the date in the cell is "5/1/1952", that's the date I want to show up when the user pops up the calendar -- not 1/1/2001.
Bfore-and-after screens shots are included.
If simply clicking the dropdown arrow is changing the date in the cell, then something is wrong. This is obviously not the intended behavior. I've never heard of that happening before. My best guess is that the field is not actually using the DateTime data type. Or perhaps something in your code is changing the value inadvertently.
If that does not help, then I'm not sure what else it could be. Can you post a small sample project demonstrating the issue? If so, I'd be happy to take a look.
Hey all,
Im using an UltraWinGrid with a DateColumn , when clicking the arrow the same type of calendar as yours is displayed.
I'd like to remove Saturdays and Sunday on this calendar but I don't have a direct access to a calendar object .
How can I customize this calendar ?
Thank you
Vianney
Hi Mike:
Here is the test project. I checked to make sure that the fields are dates (which they are). If you MANUALLY enter dates into the column, then the dropdown calendar works fine. But if the data is read in from a DataSource, then it always reverts back to 1/1/2001. I have confirmed this on two separate projects.
Can you check and see what I am doing wrong? I put "EXIT SUB' statements in all my UltraGrid events just to make sure that my code wasn't causing this (which doesn't seem to be the case).
Kevin