datagrid: index vs line

Bob Sneidar bobsneidar at iotecdigital.com
Tue Jul 28 17:15:16 EDT 2015


That is correct. If the datagrid does not have a sort applied, then upon populating it, the line and index numbers will be equal. Also, if you populate the datagrid with data in the same sort order as the datagrid, then line should equal index. It’s because of this and my need to assume that the visible line 1 is also the logical line 1 that I have gotten into the habit of getting the dgprop [“sort by column”] of the data grid, so I can query the data in the same order as the table is being sorted. 

Bob S


> On Jul 27, 2015, at 10:13 , Klaus major-k <klaus at major-k.de> wrote:
> 
> Hi friends,
> 
> just a quick question:
> When you set "the dgdata" of a datagrid of type FORM
> and you do not sort or re-arrange the datagrid or whatever then 
> INDEX = LINE. Know what I mean? 
> 
> Is that correct?
> 
> Thanks a lot in advance!
> 
> 
> Best
> 
> Klaus
> --
> Klaus Major
> http://www.major-k.de
> klaus at major-k.de
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode



More information about the use-livecode mailing list