datagrid weirdness

Bob Sneidar bobs at twft.com
Mon Sep 17 12:39:06 EDT 2012


The labels do not matter. They can differ from the actual column names. What matters is the dgprop["columns"]. Changing the labels is dgprop["column labels"]. 

Bob


On Sep 16, 2012, at 4:27 PM, Dr. Hawkins wrote:

> I'm working with datagrids to figure them out, and am seeing what
> seems to be weird behavior.
> 
> I set labels and widths for four columns without a problem (creatively
> labeled 1-4)
> 
> Then to stuff some text into it, i put
>   put "George" into theA[1][1]
>   put "Tuesday" into theA[1][2]
>   put "$37" into theA[1][3]
>   set the dgData of grp "sofaGrid" to theA
> 
> The cell at 1,1 get's greyed out, while 1,2 & 1,3 have Tuesday and $37
> dollars in them.  I can double-click on them to edit, but not cell
> 1,1.  Further, when I do double-click, or tab between the two live
> fields, George sometimes appears (but goes back away when I leave the
> field).
> 
> What I'd *like* to be doing is letting the user go into these, even
> putting the cursor into 1,1 if I have no data to load in, and then
> catching closeField and leaving the row for processing.
> 
> 
> 
> -- 
> The Hawkins Law Firm
> Richard E. Hawkins, Esq.
> (702) 508-8462
> HawkinsLawFirm at gmail.com
> 3025 S. Maryland Parkway
> Suite A
> Las Vegas, NV  89109
> 
> _______________________________________________
> 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