Datagrid Caption styling

0
Hi all, How can i style the caption of my datagrid? Best regards, Elwin
asked
5 answers
0

You need CSS to change it. See the learning path here: https://gettingstarted.mendixcloud.com/link/module/361/lecture/2875/5.1-Best-Practices

Regards,

Ronald

 

answered
0

Hi Elwin,

You can target .mx-datagrid-head-caption class to change styles for caption in Project directory\theme\styles\web\sass\app\widgets >_datagrids.scss file (create this file if it does not exist) and add custom styles in this file, see the screenshot below. If you just want to only apply caption style changes to the specific datagrid and not all than wrap a custom class e.g.  ‘.custom-datagrid’ and use it on the datagrid.   

As Roland mentioned you can follow the learning path and also get some additional information in this forum post

Hope this helps!

answered
0

Thank you Ronald for your answer.

Do you have a tip for only changing the Caption and not the whole column?

answered
0

Yes Thank you

answered
0

Yes Thank you

answered