dg first row

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
link76
Posts: 99
Joined: Fri Nov 04, 2011 1:52 pm

dg first row

Post by link76 »

Hello

I have a scroll control in my dg created with the object iphonecontrol.
I delete the control when I leave the card, but when I return in the card, the rows are where I left them,

how can I put on the first line of the dg?

thanks
mdoub
Posts: 14
Joined: Sun Jan 07, 2007 5:47 pm

Re: dg first row

Post by mdoub »

Take advantage of the dgVScroll scroll property of the datagrid. When the grid is initialized it is set to 0 and the first line is at the top.
Post Reply