Page 1 of 1

Datagrid border color

Posted: Thu Feb 09, 2012 6:20 pm
by Ken10
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.

Re: Datagrid border color

Posted: Fri Jun 16, 2017 10:44 pm
by montymay
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

Re: Datagrid border color

Posted: Mon Jun 19, 2017 5:48 pm
by jiml
Does this not work for you?

Code: Select all

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

Re: Datagrid border color

Posted: Mon Jun 19, 2017 6:01 pm
by bogs
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 :(

Re: Datagrid border color

Posted: Fri Nov 05, 2021 11:59 pm
by Monox18
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.

Re: Datagrid border color

Posted: Sat Nov 06, 2021 2:18 am
by dunbarx
I tried setting the dgProp and noticed no change in a DG I made.

Craig

Re: Datagrid border color

Posted: Sat Nov 06, 2021 9:21 am
by Monox18
Take a look. I'm using Windows 10 and latest LC.
Screenshot 2021-11-06 09.18.35.png

Re: Datagrid border color

Posted: Sat Nov 06, 2021 2:33 pm
by stam
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

Re: Datagrid border color

Posted: Sat Nov 06, 2021 2:49 pm
by dunbarx
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