Page 1 of 1

Incorrect "Column does not exist" error from dataGrid

Posted: Tue Jun 13, 2017 7:11 pm
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.

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

Posted: Tue Jun 13, 2017 9:53 pm
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.