SelectionChanged and datagrids
pete at mollysrevenge.com
Tue Feb 22 17:36:19 CST 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.
On Feb 22, 2011, at 2:51 PM, Terry Judd wrote:
> Bob - How about sending "selectionChanged" to the datagrid immediately after
> updating the dgText?
> 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.
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription
> 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:
More information about the use-livecode