SelectionChanged and datagrids

Bob Sneidar bobs at twft.com
Tue Feb 22 20:02:35 EST 2011


Ya I can easily do that, but I was commenting on the way it worked. I set the dgText of a datagrid a lot, so I would have to remember to do so each time. I was thinking it ought to be automatic. 

Bob


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