On Mar 23, 2010, at 6:30 AM, Jacopo Lupi wrote:

I have a question about datagrids.

I need to turn off the hiliting of lines in a datagrid with the auto hilite prop turned on when i click outside the used (or existing) lines.

Litte example:

I have a datagrid filled with 3 lines. I click on the second line and it becomes hilited.

If I click on the empty part of the datagrid the second line remains hilited. I would like the hiliting of the second row to disappear.

Try adding this to the data grid group script and see if it does what you want (untested):

on mouseDown pBtnNum
    dgMouseDown pBtnNum

    if pBtnNum is 1 then
        if the dgDataControl of the mouseControl is empty then
            ## didn't click on a row
            set the dgHilitedLines of me to empty
        end if
    end if
end mouseDown

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.com
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to