Page 1 of 1

Calculate number of rows in DataGrid

Posted: Tue Aug 16, 2011 2:13 pm
by tabbiati
Hello,
How can calculate the number of rows in a DataGrid?
Thanks

Re: Calculate number of rows in DataGrid

Posted: Tue Aug 16, 2011 2:33 pm
by bangkok

Code: Select all

put the dgNumberOfLines of group "myDataGrid"
or

Code: Select all

put the dgText of group "myDataGrid" into myGrid
answer the number of lines of myGrid

Re: Calculate number of rows in DataGrid

Posted: Tue Aug 16, 2011 2:48 pm
by Klaus
Hi tabbiati,

you can download the complete DataGrid docs in PDF format here:
http://lessons.runrev.com/spaces/lesson ... s/datagrid

Datagrids are complex beasts, so make sure to re-create and understand each example in the PDF! 8)


Best

Klaus

Re: Calculate number of rows in DataGrid

Posted: Tue Aug 16, 2011 2:51 pm
by tabbiati
:D Many thanks to all

Re: Calculate number of rows in DataGrid

Posted: Tue Aug 16, 2011 4:55 pm
by bangkok
Klaus wrote: Datagrids are complex beasts, so make sure to re-create and understand each example in the PDF! 8)
I concur !

First, I was totally "flaggerbasted" by datagrid... i thought : "too complex, no need". I decided to stay with good old text fields.

And, then I started to play with datagrid. And then it became easier. DG are very nice indeed, and incredibly well thought.

You just need to play with examples, and read the doc.