| | | | Browse by category |
Problem
I am using a custom format with the date/time control. However, when I look at the value that is stored in the grid, it is still the standard date format. Why is that, and how can I get the correctly formatted date?
Cause
Action
The value stored in the style is not in the custom format. Our sample code in gridapp (OG 5.0) is a bit misleading here. We fixed that sample in our 5.01 and 6.0 version.
CGXDateTimeCtrl stores the value in the standard format, but the custom format is displayed in the cell.
You can convert the value from standard format to custom format (that is displayed in the cell) when you call:
CGXDateTimeCtrl* pControl = (CGXDateTimeCtrl*) GetControl(nRow, nCol); |