Right-justify numeric attributes in a data grid column

2
I've got datagrids with columns containing money amounts. How can I specify the justification of individual columns in a datagrid? Simple right justification will do.
asked
1 answers
3

Hi Martin - In my experience numeric attributes are automatically right justified in a datagrid column. I certainly have attributes of type 'Currency' which are displayed right-justified in datagrid columns by default. What are the datatypes of the attributes you are displaying?

In a dataview you can add the following style, 'text-align: right;' in the Style property of a text box, but I don't think this property is available in a datagrid column.

answered