Hello!
Is there any solution for aligning data in DataGrid columns?
According to documentation there is a TextAlign
property that can align data in columns. But in my case it only works with header, but not with data in column. I'd like to align content in several columns to right but only header is aligned.
What can be done to fix it?
Yes, I know that it sounds strange, but still It does not work for me.
I use 4.3.5 version.
There is a code sample that I use and a screenshot.
Three columns: Hours, Planned Hours and Percentage should be aligned to the right, but only headers were updated. Css class table-row
does nothing related to alignment, and Row Render
method also.
Sorry for inconvenience. My bad. I've just found cause of problem in code base. Standard css class .rz-cell-data
was updated in generic layout component. That's why text-align: right
does not work.