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.
The following update was done by Magued from Infragistics. I apologize for the error.
Hi Kevin,
I have tested the sample that you sent to DS. When there is no value in the cell and you click the drop down the date that is displayed is today's date and that is correct. I am also sending you a movie capture as an update to the DS case.
Please advice on how to reproduce the issue.
Magued
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
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.