When changing the Day field in the edDateTimeEdit you must enter "09" instead of "9". If you don't as soon as you click to a different column it reverts back to the previous value.
Steps
1. Click in a DateTimeEdit column.
2. Click in the Day section of the component.
3. Change the day to "9".
4. Click on a different column or outside of the grid control.
5. The date has reverted back to the previous value.
Can't be reproduced here with 5.8.4.0 and default grid on the form initialized with:
OK, I figured out the difference.
Use your Demo/asg4
change ShortDateFormat := 'dd/mm/yy';
to ShortDateFormat :='mm/dd/yyyy';
now repeat the steps given in the first post and you will see the same bug.
As a side note, if I set the ShortDateFormat to 'yyyy/mm/dd' the date editor pulls up as 'mm/dd/yyyy' format still, but the string shows correctly.
Your inplace datetimepicker is most likely still using the default format : d/M/yyyy. This means that you're editing the day which is after editing ends formatted to mm/dd/yyyy
I tried that, but whenever I do I get an error when it hits that line. (Control '' has no parent window')
Am I putting it in the wrong location?
I put "editGrid.DateAndTimePicker.Format := 'MM/dd/yyyy';" in TDemo.FormCreate after "EditGrid.Combobox.Sorted := True;"
I have seen this issue with the current release. It was fixed now. With next update, you'll be able to set this format.
When is this next update going to be coming out? Our customer needs this feature soon.
Could you send us the code changes and we would implement it and do more testing for you?
I have retested this here with the latest version v5.8.7.0 with a default grid on the form and the code:
I have retested this with a default grid on the form with the code:
Again, is this the latest version you're using? v5.8.7.0?
Ok, I just tried using a new grid next to my old one, and it works fine.
Yea, I got it.