dgNumberOfLines
- Returns the number of lines displayed in the data grid.

This is obviously a misnomer. If I have a piece of lined paper with nothing on 
it, and someone asks me how many lines are on it, I start counting blank lines. 
I don’t answer “Zero.”

Barring that, you will have to do some math based upon the formattedHeight of 
each row and the height of the data grid itself, minus the column headers and 
scrollbar if there is one.

Bob S


On Nov 19, 2014, at 03:59 , Terence Heaford 
<t.heaf...@btinternet.com<mailto:t.heaf...@btinternet.com>> wrote:

How can I calculate the number of rows in a DataGrid.

I don’t mean the dgNumberOfLines as this is just the number of rows containing 
data.

I actually need the number of visible rows. The DataGrid can be resized by 
script.

It is straightforward where the height of the header and the height of a row is 
fixed but I was hoping the information may be a property of the DataGrid but I 
can’t seem to fined one.


Thanks

Terry
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com<mailto: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

_______________________________________________
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