ken_schwartz
2019-01-18T15:21:27Z
I've been able to display the grid and add data with some basic functionality. However, I'm stuck on sorting a date column. The dates I'm supplying are in CCYYMMDD format. I want the grid to display the dates in MM/DD/CCYY or MM/DD/YY format while retaining a correct sort. Has anyone successfully implemented this grid using a COBOL program? I would be most grateful for coding samples.
Igor/10Tec
2019-01-18T16:01:08Z
Ken, did you try the CellDynamicText event we suggested in our email correspondence? Does it work in COBOL?
ken_schwartz
2019-01-21T15:56:57Z
I did, but without success. I am able to respond to events like a mouse click, and I see various events fire as the grid is created, but I don't see the CellDynamicText event.
Igor/10Tec
2019-01-22T08:13:09Z
You should manually enable this event. Here is the corresponding excerpt from the documentation:

Quote:

Important: enabling this event

This event may be raised many times per second during drawing operations, etc. To provide the best performance, iGrid does not raise this event by default. To enable it, specify the igDCEventCellDynamicText flag in the DynamicContentEvents property.

ken_schwartz
2019-01-22T23:01:48Z
I've enabled the event so that it does fire. However, I am unable to effect any change to the data. Perhaps it's a timing issue? The event does not fire until after data has been loaded into the grid.
ken_schwartz
2019-01-24T14:43:18Z
I got this to work by providing a date cell value in this format: YYYY-MM-DD

MODIFY TENTECH-1 @CellValue(ROW-COUNT,3,INPUT-DATE)

Then I use the @CellFmtString property with this format: MM/dd/yyyy

MODIFY TENTECH-1 @CellFmtString(ROW-COUNT,3,"MM/dd/yyyy")

This displays and sorts the date correctly.

Users browsing this topic