QUOTE (Jordan @ Jul 17 2009, 07:31 PM) <{POST_SNAPBACK}>
I have started using the OnCellColoring event, and for one of my applications, the event is triggered with a Row value that is equal to RowCount, causing an index out of bounds exception when I use that value. I had to place a test for this condition in the event code:
The safety check seems to work fine, but I have to remember to include it in all my event handlers.
Has this problem been reported before?
CODE
if ARow >= TheGrid.RowCount then
exit;
... actual code to set colors
exit;
... actual code to set colors
The safety check seems to work fine, but I have to remember to include it in all my event handlers.
Has this problem been reported before?
I found this earlier post that seems to answer my question:
http://www.bergsoft....=oncellcoloring
Is there a way to suppress the drawing of inactive rows. I would like to have grid lines, but only for the active rows, and so far, I haven't been able to do that.



Find content
Not Telling
