I am trying to fix an issue with the WinGrid. I have a grid which has a DateTimeEditor attached to a cell (not all cells in the column are a date). When I am in debug mode the cell updates perfectly, but when I change to Release mode the cell fails to update itself with the new value and stays blank.
Is their any way I can make sure that the value gets updated.
Thanks,
blair
Hi Blair,
How is the cell being updated? What exactly do you mean when you say it fails?
The Grid is using the UpdateMode.OnCellChange and I have overridden the OnCellChange method and placed Tracing code in there which runs under Debug mode but not when the code is in Release mode. As to the fails I mean that the cell is not updated with the value that was selected in the DateTimeEditor. It seems that the event handler is not connected under Release mode but is in Debug mode.
Sorry, I guess my question wasn't clear. What I mean is.. what exactly are you doing to update the cell? Are you typing into it? Are you setting the Value of the cell in code? Are you setting the value of the underlying data row? Are you then moving off the cell? Are you tabbing to another cell or clicking away?
I can't see any reason why the grid would behave differently in Release mode. Are you sure nothing in your code is changing? Are you testing this on the same machine or is the Release mode test on a different machine?
I found the problem. It was a strange multithreading issue. As soon as I told the system to Sleep for a bit the problem disappeared.