Calculate number of rows in DataGrid

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
tabbiati
Posts: 18
Joined: Sat Jul 09, 2011 3:18 pm

Calculate number of rows in DataGrid

Post by tabbiati » Tue Aug 16, 2011 2:13 pm

Hello,
How can calculate the number of rows in a DataGrid?
Thanks

bangkok
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 937
Joined: Fri Aug 15, 2008 7:15 am

Re: Calculate number of rows in DataGrid

Post by bangkok » Tue Aug 16, 2011 2:33 pm

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

Klaus
Posts: 14194
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Calculate number of rows in DataGrid

Post by Klaus » Tue Aug 16, 2011 2:48 pm

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

tabbiati
Posts: 18
Joined: Sat Jul 09, 2011 3:18 pm

Re: Calculate number of rows in DataGrid

Post by tabbiati » Tue Aug 16, 2011 2:51 pm

:D Many thanks to all

bangkok
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 937
Joined: Fri Aug 15, 2008 7:15 am

Re: Calculate number of rows in DataGrid

Post by bangkok » Tue Aug 16, 2011 4:55 pm

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.

Post Reply