|
|
|
|
Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Jeff Mayo
|
Jan 30, 2012 - 1:52 PM
|
Using version 2.91. If I create a CExtGridCellDateTime as follows:
CExtGridCellDateTime* pCell =
STATIC_DOWNCAST(
CExtGridCellDateTime,
pGrid->GridCellGet(
nCol++,
nRow,
0L,
0L,
RUNTIME_CLASS(CExtGridCellDateTime)
)
);
if (pCell != NULL) {
COleDateTime dtValue;
dtValue.ParseDateTime(paramValue);
pCell->SetMode(CTcsGridCellDateTime::all);
pCell->SetTimeFormat(CTcsGridCellDateTime::h24);
pCell->SetDateTime(dtValue);
} When I click on one of the time fields to edit them the text changes from "1/30/2012 0:00:00" to "1JanJanuary/30/20120:00:00". Is there something I am not configuring correctly?
|
|
Technical Support
|
Feb 1, 2012 - 7:47 AM
|
Thank you for reporting this issue. Please drop us an e-mail to the support mail box at this web site so we will provide you with the source code update.
|
|
Jeff Mayo
|
Jan 30, 2012 - 1:57 PM
|
Should be correct this time:
CExtGridCellDateTime* pCell =
STATIC_DOWNCAST(
CExtGridCellDateTime,
pGrid->GridCellGet(
nCol++,
nRow,
0L,
0L,
RUNTIME_CLASS(CExtGridCellDateTime)
)
);
if (pCell != NULL) {
COleDateTime dtValue;
dtValue.ParseDateTime(paramValue);
pCell->SetMode(CExtGridCellDateTime::all);
pCell->SetTimeFormat(CExtGridCellDateTime::h24);
pCell->SetDateTime(dtValue);
}
|
|
Jeff Mayo
|
Jan 30, 2012 - 1:56 PM
|
Sorry for the typo the code snippet should be: CExtGridCellDateTime* pCell = STATIC_DOWNCAST(
CExtGridCellDateTime
pGrid->GridCellGet( nCol++, nRow, 0L, 0L, RUNTIME_CLASS(CExtGridCellDateTime) ) ); if (pCell != NULL) { COleDateTime dtValue; dtValue.ParseDateTime(paramValue); pCell->SetMode(CExtGridCellDateTime::all); pCell->SetTimeFormat(CExtGridCellDateTime::h24); pCell->SetDateTime(dtValue); }
|
|