how to apply custom CSS to data grid

0
I want to apply css to headers and rows but I have written it and applied class to data grid but it is not working. Please let me know how to do that .my-custom-grid .mx-datagrid-head {  background-color: red;  color: white;  font-weight: bold;} .my-custom-grid .mx-datagrid-head th {  text-align: center;  border: 1px solid white;} .my-custom-grid .mx-datagrid-body td {  text-align: center;  font-weight: 500;} .my-custom-grid .mx-datagrid-body tr:nth-child(odd) {  background-color: #e6e6e6;} .my-custom-grid .mx-datagrid-body tr:nth-child(even) {  background-color: #d0d0d0;}
asked
4 answers
2

Hello Priya

 

please check below forum questions.

 

Mendix Community - Question Details

 

Mendix Community - Question Details

 

Mendix Community - Question Details

 

Mendix Community - Question Details

 

answered
1

Hi Priya,

 

1. Create custom scss file and import it into main.scss file

2. In custom scss file, write your custom styling and add !important to the styling properties. 

 

Try this, let me know for any assistance

 

Thanks,

Mobin

 

 

answered
0

yes, I have added in main.scss still I am facing the issue.

answered
0

Yes, I have added my custom css in custom-variable.scss file and apply claa to data grid still it is not working.

answered