Right-align column in Data-grid

2
Is there a way to set the alignment (left/center/right) of a particular text-column in a Data grid? If not from within the Modeler, can it be achieved via .css?
asked
2 answers
2

Arno, it's possible to adjust the alignment of a table cell with the css class: .tundra .mendixDataGrid_tableData. Problem is that this will be done for all column in every datagrid.

But it's possible to set a css class for a specific datagrid. When you do this, you could use something like this:

.yourspecificdatagrid .tundra .mendixDataGrid_tableData {
    text-align:right;
}

But this will be done for all columns for that particular datagrid. The only way to do it individual for every specific column, you need to set a css class for that particular column. AFAIK this isn't possible in the default data grid in Mendix 3.3.2.

answered
0

Thanks Samet!

answered