Page 1 of 1

Datagrid clicking problem

Posted: Mon Jul 13, 2015 3:58 pm
by Rob van der Sloot
I have set up a nice working app. where I use quite a lot of datagrids as lists.
From these datagrids the user can select a record by clicking on it and then gets a screen with all details about that record.
If I set the clicking on 1 click (on mouseUp), I get a problem with the scrollbar.
Everytime I click on the scrollbar to scroll down, the datagrid automatically selects a record, sometimes even giving an error.
I can solve this by choosing "on mouseDoubleUp" in stead of "on mouseUp", but that I find very user unfriendly.
How can this problem be solved?

Thanks
Rob van der Sloot

Re: Datagrid clicking problem

Posted: Mon Jul 13, 2015 4:09 pm
by zaxos

Code: Select all

on mouseUp
if the short name of the mouseControl is not "dgScrollbar" then
YourCode
end if
end mouseUp