On Wed, Nov 19, 2014 at 2:01 PM, Terence Heaford <t.heaf...@btinternet.com>
wrote:

>
> Imagine a data grid with 20 rows with each row empty.
>
> I want to return 20.
>

Ah, so you want to know how many rows could be drawn in the visible area of
the data grid. This should work:

put the dgWorkingRect of group "MyDataGrid" into theVisibleRect
put item 4 of theVisibleRect - item 2 of theVisibleRect into
theVisibleHeight
put theVisibleHeight / the dgProps["row height"] of group "MyDataGrid" into
theNumberOfVisibleRows

-- 
Trevor DeVore
ScreenSteps
www.screensteps.com    -    www.clarify-it.com
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to