datagrid changing fixed row height

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
cusingerBUSCw5N
Posts: 339
Joined: Wed Jul 11, 2012 9:24 pm

datagrid changing fixed row height

Post by cusingerBUSCw5N » Mon Dec 31, 2012 6:48 am

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

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10331
Joined: Wed May 06, 2009 2:28 pm

Re: datagrid changing fixed row height

Post by dunbarx » Mon Dec 31, 2012 6:25 pm

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

cusingerBUSCw5N
Posts: 339
Joined: Wed Jul 11, 2012 9:24 pm

Re: datagrid changing fixed row height

Post by cusingerBUSCw5N » Thu Jan 03, 2013 5:07 pm

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

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10331
Joined: Wed May 06, 2009 2:28 pm

Re: datagrid changing fixed row height

Post by dunbarx » Thu Jan 03, 2013 9:34 pm

What is the difference in the two codes?

Surely not just the name of the group?

Craig Newman

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10331
Joined: Wed May 06, 2009 2:28 pm

Re: datagrid changing fixed row height

Post by dunbarx » Fri Jan 04, 2013 5:18 am

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

Post Reply