Datagrid border color
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Datagrid border color
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.
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
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.
Monty

Monty
Re: Datagrid border color
Does this not work for you?
Code: Select all
set the bordercolor of grp "datagrid 1" to "red"
Re: Datagrid border color
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
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/
Developing a Cyber Physical System.
https://www.monoxware.com/
Re: Datagrid border color
I tried setting the dgProp and noticed no change in a DG I made.
Craig
Craig
Re: Datagrid border color
Take a look. I'm using Windows 10 and latest LC.
Monox
Developing a Cyber Physical System.
https://www.monoxware.com/
Developing a Cyber Physical System.
https://www.monoxware.com/
Re: Datagrid border color
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
List of dgProp keys: https://lessons.livecode.com/m/datagrid ... properties
Re: Datagrid border color
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
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