Showing results for 
Search instead for 
Did you mean: 

Text Align In Data Table

Currently all of the contents  in a Data Table are aligned on the left side and there is no provision available to set the Text Alignment of the contents of each of columns of Data Table. It would be very beneficial to have the text align property for the Contents of Data Table too, as sometimes it is unacceptable for clients to have their data left-aligned in Data Table and causes great inconvenience to Power Apps Developers.


Thank you.

Status: New
Advocate II

Absolutely! The only alternative for an aesthetic solution is to build a data table using a gallery which is very time consuming!

Super User

Thanks for bringing this idea. This is required as my below data table alignment does not look good.




Frequent Visitor

@sbeckles has an elegant solution:


I wanted to right align my number columns and I searched online only to find out that there isn't a solution out there.  However, I came up with a way to right align a data table column. It it is not elegant but it worked. You can use the text property to format your values. Here is the formula that I used:

Right(Substitute("xxxxxxxxxxxxxx", "x", Char(127)) & Text(ThisItem.YourColumnName, "#,###,0.00"), 14)


In this case, I wanted a numeric column to be right aligned within 14 characters. So I packed a non printable character in front of the numbers up to a length of 14. A space didn't work because only one is displayed.  I checked the ASCII table for another character that would be repeated but not shown and came up with ASCII code 127 (DEL).