You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ListView.GridLines set to true but not working. #840
Yep, the docs are update at a much slower pace since every time it takes several hours to upload 7,600+ pages.
The property ListView.GridLines is a boolean that can only turn grid lines on or off. What on and off means depends on the theme. The built-in themes have vertical grid lines for the listview or no lines at all when off. You can change that with a mixin (there are couple of examples on the forum), in short this is what you need for horizontal grid lines:
The DataGridView has a different property CellBorderStyle that is an enumeration with None, Single, SingleVertical, SingleHorizontal, etc. The meaning of each stat is define in the themes.
I am wondering if it would be best to have it specify Vertical, Horizontal, Both, or None?
Because I would like to be able to make use of multiple-style listviews, with either "both" (horizontal and vertical) or "none" (neither horizontal or vertical) ... which as far as I know is still not possible without overriding the cell renderer.
In my modified theme "modified-Blue1a-ListViewGridLines" I set it to include both the horizontal and vertical by default, but then setting GridLines to false has no effect. Hope this makes sense. Thanks again,
Activity
itg-assistant commentedon Jun 12, 2026
Luca answered 2017-05-18 14:54:22 UTC
Yep, the docs are update at a much slower pace since every time it takes several hours to upload 7,600+ pages.
The property ListView.GridLines is a boolean that can only turn grid lines on or off. What on and off means depends on the theme. The built-in themes have vertical grid lines for the listview or no lines at all when off. You can change that with a mixin (there are couple of examples on the forum), in short this is what you need for horizontal grid lines:
{
"appearances": {
"listview": {
"inherit": "listview",
"components": {
"grid-cell": {
"states": {
"default": {
"styles": {
"widthRight": 1,
"widthBottom": 1,
"color": "table-column-line"
}
},
"borderNone": {
"styles": {
"widthRight": 0,
"widthBottom": 0
}
}
}
}
}
}
}
}
The DataGridView has a different property CellBorderStyle that is an enumeration with None, Single, SingleVertical, SingleHorizontal, etc. The meaning of each stat is define in the themes.
itg-assistant commentedon Jun 12, 2026
Andrew Niese answered 2017-05-18 19:18:08 UTC
Luca, I meant to reply to the earlier thread here about this (https://wisej.com/support/question/actually-applying-a-mixin-for-grid-less-listview)
Regarding Gridlines:
I am wondering if it would be best to have it specify Vertical, Horizontal, Both, or None?
Because I would like to be able to make use of multiple-style listviews, with either "both" (horizontal and vertical) or "none" (neither horizontal or vertical) ... which as far as I know is still not possible without overriding the cell renderer.
In my modified theme "modified-Blue1a-ListViewGridLines" I set it to include both the horizontal and vertical by default, but then setting GridLines to false has no effect. Hope this makes sense. Thanks again,
Andrew