Hello, this is my first post here. I have not found information on this topic using the forum search. I am using a custom onDrawCell event to change the color of cells in a TStringGrid. I have a function which is called to update the table called refreshList(). The function sets the cell data to a string for each row in the table, then calls grid->repaint.
I have my code for the onDrawCell event and refreshList function in a try block, with the catch section set to inform me of a failure. Both of these functions fail from time to time. It seems almost random as there will be a period of time with no errors, then a period where there are many errors. The data in the TStringGrid seems to jumble at this time, by this I mean data from cell 1 is in cell 2 and so on, in no particular fashion.
Does anyone have any suggestions for this problem or has anyone seen this before? It is baffling me at the moment. I would also like to post the code for these two functions, would someone tell me how this is done.
Thanks all for any help.
I have my code for the onDrawCell event and refreshList function in a try block, with the catch section set to inform me of a failure. Both of these functions fail from time to time. It seems almost random as there will be a period of time with no errors, then a period where there are many errors. The data in the TStringGrid seems to jumble at this time, by this I mean data from cell 1 is in cell 2 and so on, in no particular fashion.
Does anyone have any suggestions for this problem or has anyone seen this before? It is baffling me at the moment. I would also like to post the code for these two functions, would someone tell me how this is done.
Thanks all for any help.