Datagrid border color

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
Ken10
Posts: 2
Joined: Thu Apr 07, 2011 6:15 pm

Datagrid border color

Post by Ken10 » Thu Feb 09, 2012 6:20 pm

Does anybody know how to change border color of Datagrid?
By default, it is black.
I thought that the "Border" color setting on the card and/or the stack should change the border color of Datagrid.
however, I could not see any change by that.
I couldn't find the color setting for the border in Datagrid's property. Thanks.

montymay
Posts: 145
Joined: Thu Jul 18, 2013 5:23 am

Re: Datagrid border color

Post by montymay » Fri Jun 16, 2017 10:44 pm

I too noticed today, more than five years after the first post, that there does not seem to be a way to change the border color of the datagrid from its default color, black. I take the silence to be a negative answer to the question. :D

Monty

jiml
Posts: 339
Joined: Sat Dec 09, 2006 1:27 am

Re: Datagrid border color

Post by jiml » Mon Jun 19, 2017 5:48 pm

Does this not work for you?

Code: Select all

set the bordercolor of grp "datagrid 1" to "red"

bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: Datagrid border color

Post by bogs » Mon Jun 19, 2017 6:01 pm

Worked here in 6.5.2 ? I think (some) of the problems with the datagrid new people experience is that it is a group, not a single control, but they try to treat it as such. I know I did, and sometimes forget and still do :(
Image

Monox18
Posts: 118
Joined: Tue Nov 25, 2014 9:48 pm

Re: Datagrid border color

Post by Monox18 » Fri Nov 05, 2021 11:59 pm

The border color can be changed by setting the undocumented property dgProp["border color"]. Apparently this property was introduced in LC 4.5.1 in 2010, so it has been always possible to change the border color but since it is undocumented then no one knew. I can't believe LC hasn't added this to the dictionary. I opened the bug report: Bug #23414. Hopefully they fix it and better document their controls.
Monox
Developing a Cyber Physical System.
https://www.monoxware.com/

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

Re: Datagrid border color

Post by dunbarx » Sat Nov 06, 2021 2:18 am

I tried setting the dgProp and noticed no change in a DG I made.

Craig

Monox18
Posts: 118
Joined: Tue Nov 25, 2014 9:48 pm

Re: Datagrid border color

Post by Monox18 » Sat Nov 06, 2021 9:21 am

Take a look. I'm using Windows 10 and latest LC.
Screenshot 2021-11-06 09.18.35.png
Monox
Developing a Cyber Physical System.
https://www.monoxware.com/

stam
Posts: 3064
Joined: Sun Jun 04, 2006 9:39 pm

Re: Datagrid border color

Post by stam » Sat Nov 06, 2021 2:33 pm

Yep there are a great number of dgProps that are not exposed in the properties panel - worth being aware of if you want to control in script, or perhaps consider investing in Data Grid Helper (from LiveCode's store) that basically provides a graphical interface for this and has some extra features, but which i find just a bit too buggy for every day use...

List of dgProp keys: https://lessons.livecode.com/m/datagrid ... properties

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

Re: Datagrid border color

Post by dunbarx » Sat Nov 06, 2021 2:49 pm

Well, I'll be.

All my life I thought that I could pull a DG from the tools palette onto a blank card and right away refer to it as "group 1". I know there are other groups within that gadget.

Anyway, the border is in group 2, which is (now?) the actual entire DG. If I "select group 1", i see nothing selected at all.

Was I always nuts?

Craig

Post Reply