As I said, there may be more elegant solutions, just offering something I've seen happen. I hope there is a way to add columns specifically because I'd like to do that. Hopefully someone more knowledgeable that I will come up with something.
You can use the dgColumnName and dgColumnLabel properties of a column to change the column name/label but you have to know the current name of the column. Pete Haworth On Jan 21, 2011, at 10:36 AM, Ray Horsley wrote: > Really? So there's no way other than this to add columns to a datagrid and, > even more disappointing, there's no way at all to set column names from a > script? > > Ray Horsley > LinkIt! Software > > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Peter Haworth > Sent: Friday, January 21, 2011 12:29 PM > To: How to use LiveCode > Subject: Re: Adding Columns to a Datagrid via Script > > I'm sure there will be more elegant solutions but if you add data to a > datagrid that has more columns than defined, the extra column(s) are added > to the right of each row. No control over column names, etc though. > > Pete Haworth > > On Jan 21, 2011, at 8:38 AM, Ray Horsley wrote: > >> Anybody know how to add columns to a datagrid via a script? >> >> Thanks, >> >> Ray Horsley >> LinkIt! Software >> >> >> _______________________________________________ >> use-livecode mailing list >> [email protected] >> Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > _______________________________________________ > use-livecode mailing list > [email protected] > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > [email protected] > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ use-livecode mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
