Incorrect "Column does not exist" error from dataGrid

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
dpatterson
Posts: 24
Joined: Wed Jan 18, 2017 5:38 pm

Incorrect "Column does not exist" error from dataGrid

Post by dpatterson »

I added a new dataGrid to a card, named it, and added my columns to it.
When I try to set the alignment of the headers with

Code: Select all

set the dgHeaderAlignment["id"] of group "vendorsGrid" of card "lists" to "left"
LC reports the following error:

Code: Select all

Message execution error:
Error description: Object: object does not have this property
Hint: column 'id' does not exist
The column "id" most certainly does exist.
See the uploaded screen shot.
Screen shot showing the column definition
Screen shot showing the column definition
I've tried quitting and restarting; no joy.
I deleted the dataGrid, created a new one, and added a single column named "id". Same results
I haven't set any custom behaviors, yet, so it isn't that.

I'm running LiveCode V9.0.0 DP 6.

Color me very confused.
Thanks in advance.
dpatterson
Posts: 24
Joined: Wed Jan 18, 2017 5:38 pm

Re: Incorrect "Column does not exist" error from dataGrid

Post by dpatterson »

After much pulling of hair, I finally figured it out.
There was a mysterious numbered group in the card and it contained another group named "vendorsGrid".
I have no idea where either of them came from.
I had to delete it using the message box. The Project Browser wouldn't.

Strange.
Post Reply