DataGrid Form

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
ramywhite
Posts: 2
Joined: Thu Apr 30, 2009 4:48 pm

DataGrid Form

Post by ramywhite » Wed May 27, 2009 5:35 pm

Hi,
I have a datagrid form with Customized Template and without column headers, I want to get the data from it, I have used this code:

Code: Select all

         repeat for each item theIndex in the dgIndexes of group "resdg"
            put the dgDataOfIndex[theIndex] of group "resdg" into theDataA
            if theDataA["name"] is not empty then
               answer theDataA["name"]
            end if
         end repeat
But I get the data from the second record to the end. I think it is something related to the headers of the columns, "dgDataOfIndex" properity assumes the form has header then it starts from the second record.

How to get the first record?

Many thanks,

ramywhite
Posts: 2
Joined: Thu Apr 30, 2009 4:48 pm

RESOLVED

Post by ramywhite » Wed May 27, 2009 6:03 pm

Hi,
I have closed the stack and reopened it again and then every thing is fine.
Thanks,

WaltBrown
Posts: 466
Joined: Mon May 11, 2009 9:12 pm

Post by WaltBrown » Thu May 28, 2009 10:36 pm

I hate when that happens! :shock: :o :oops:
Walt Brown
Omnis traductor traditor

peramangk
Posts: 22
Joined: Wed Jul 04, 2007 11:45 am

Post by peramangk » Sun Jun 14, 2009 8:02 am

I was having trouble with a datagrid that would not scroll, so I quit Rev and restarted; and now it's working.

Thanks for the tip!

Post Reply