no worries,

Under some circumstances you may need to invalidate the row after you update it's enabled state in order to get it to redraw.

dim i as integer

for i = 0 to me.columncount-1
 me.invalidatecell(row,i)
next


I do this in the assigning RowEnabled Function after I update the array.

Cheers,
Tom

On 02/03/2006, at 8:47 AM, Keith Hutchison wrote:

Hi Tom

On 3/2/06, Tom Benson <[EMAIL PROTECTED]> wrote:

No inbuilt mechanism exists (to my knowledge, I'm still in 5.5 mostly
like yourself).

I have a custom class with a function "rowEnabled(index as integer,
assigns b as boolean)" which modifies a boolean array in the class.
A second Funtion "rowEnabled(n) as boolean" returns the state of the
passed index.

Then in the cellTextPaint event I change the color of the text
(g.forecolor) to grey if rowEnabled(row) is false.

With a little more effort (trapping in mousedown etc.) you can stop
the row from getting focus etc.


Thanks



--
Keith Hutchison
http://balance-infosystems.com http://realopen.org
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

All questions and answers unless otherwise stated are in Relation to Mac OS X 10.4 and later.


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to