Page 1 of 1

datagrid changing fixed row height

Posted: Mon Dec 31, 2012 6:48 am
by cusingerBUSCw5N
I want to change the fixed row height of my datagrid depending on the deployment.

My code:

set the dgProp["row height"] of grp "datagrid_meeting" to 44

doesn't work. Is it because I have to "send it" to the datagrid??? Somewhere in my code I remember doing something like that, but right now I can't remember what to search for.

Thanks

Re: datagrid changing fixed row height

Posted: Mon Dec 31, 2012 6:25 pm
by dunbarx
Hi.

I use dataGrids, but understand little of them.

However, there is a property, the "fixed row height", which may have to be set to "false" before you can do what you are trying to do.

Let me know how it works out.

Craig Newman

Re: datagrid changing fixed row height

Posted: Thu Jan 03, 2013 5:07 pm
by cusingerBUSCw5N
No..it has to stay fixed.

The problem was that I was using the wrong code Here is the right one:

Code: Select all

set the dgProp["row height"] of grp "datagrid_local" to 50

Re: datagrid changing fixed row height

Posted: Thu Jan 03, 2013 9:34 pm
by dunbarx
What is the difference in the two codes?

Surely not just the name of the group?

Craig Newman

Re: datagrid changing fixed row height

Posted: Fri Jan 04, 2013 5:18 am
by dunbarx
Not sure what I did to help, but you are welcome.

If you are new to LiveCode, you are moving very quickly indeed if you are working with dataGrids, which are complex objects. They often entice new users because they have so much to offer, and seem to be such a complete package. But it is much more appropriate that a novice start to work with more basic objects and techniques.

But do write back any time with questions. Good luck with your projects.

Craig Newman