SelectionChanged and datagrids

Peter Haworth pete at mollysrevenge.com
Tue Feb 22 18:36:19 EST 2011


Yes, that's what you need to do.  I set the dghilitedline of datagrids by script frequently and that doesn't trigger a selectionChanged event so I have to send one in the script.

Pete Haworth

On Feb 22, 2011, at 2:51 PM, Terry Judd wrote:

> Bob - How about sending "selectionChanged" to the datagrid immediately after
> updating the dgText?
> 
> Terry...
> 
> 
> On 23/02/11 9:33 AM, "Bob Sneidar" <bobs at twft.com> wrote:
> 
>> Not complaining just a curiosity. I have a selectionChanged handler in my data
>> grid because I want to trap for it and act based one what the user selected.
>> 
>> I discovered though, that if I have something selected, and then
>> programmatically set the dgText of the datagrid, effectively deselecting
>> anything, the datagrid does NOT get the selectionChanged message, even though
>> the selection DID change.
>> 
>> I suppose I could go into the behavior and modify it to suit my needs but it's
>> no big deal. 
>> 
>> Bob
>> 
>> 
>> 
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> --
> Dr Terry Judd | Senior Lecturer in Medical Education
> Medical Education Unit
> Melbourne Medical School
> The University of Melbourne
> 
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 





More information about the use-livecode mailing list