I have a group containing fields I use to filter a DataGrid object and wish to scroll them simultaneously when a user scrolls horizontally in the DataGrid.
So within the script of the DataGrid I wished to intercept the horizontal scrolling event, then similarly scroll the filter field group before passing the horizontal scroll event in the DataGrid.
I figured in the script of the DataGrid something like:
Code: Select all
setprop dgHScroll [pValue]
set the hScroll of group "grpFilter" to pValue
pass dgHScroll
end dgHScroll
I can manually do it from a button using:
Code: Select all
get the dgHScroll of group "DataGrid 1"
put it into tHScroll
set the hScroll of group "grpFilter" to tHScroll
Any assistance greatly appreciated.
Kind regards, Andrew