Data Grid 2 - Underline 1 Attribut

0
Hellou Mendixer,   How to underline in a DataGrid2 only the first attribute in the first colum ?  with -> text-decoration: underline ←  in the Properties/common/style, everthing is underline.   Thanks for your Answers, Best Regards
asked
1 answers
0

One way is to add a class to the DataGrid2-element, say ‘myDataGrid2’ and in the custom.scss add

.myDataGrid2{
    div.table-content {
        div:nth-child(2) {    //first data-row, skipping the header row
            div:nth-child(1) {    //first column
                text-decoration: underline;
            }
        }
    }
}

And you can add Dynamic classes for much more potential styling changes.

answered