web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Data Table Align Colum...
Power Apps
Answered

Data Table Align Column Data

(0) ShareShare
ReportReport
Posted on by

Good morning

 

How do I right align a column in the Data Table.

 

Your help will be much appreciated

JF

 
I have the same question (0)
  • a33ik Profile Picture
    3,306 Most Valuable Professional on at

    I believe you can add following style of cell to make it work:

    text-align: right;

     

    something like

     

    <table>
    <tr>
    <td style="text-align: right">Content</td>
    </tr>
    </table>
  • Verified answer
    v-xida-msft Profile Picture
    on at

    Hi @Anonymous ,

    Could you please share a bit more about your scenario?

    Do you want to right align a column in a Data Table control?

     

    If you want to right align a column in a Data Table control, I afraid that there is no way to achieve your needs in PowerApps currently.

     

    Currently, there is no Align property supported within Data Table control to change the align attribute of a column. If you would like this feature to be added in PowerApps, please submit an idea to PowerApps Ideas Forum:

    https://powerusers.microsoft.com/t5/Power-Apps-Ideas/idb-p/PowerAppsIdeas

     

    As an alternative solution, you could consider configure a Gallery as a Tabular GRID. Bind your Gallery to a Table data source, then within the Gallery, add several Text Input boxes as below:

    7.JPG

    Set the Default property of the Text Input box to following formula:

    ThisItem.ColumnName // use this formula to reference column value from your Table data source

    After that, you could set the Align property of the Text Input box to following:

    Align.Right

    to display the value in right align within the Text Input box.

     

    Best regards,

  • KEarley Profile Picture
    276 on at

    Exelent alternative, but too much trouble to go to for my group where "does it work?" is pretty much the only quality assureance expected.  LOL

    Thank you for sharing your solution.

  • RV-10012019-0 Profile Picture
    on at

    Hi JF,

    Right-aligning a column in the Data Table component of Power Apps is not currently supported. The default alignment for all data, including numbers, is left-aligned, and there is no built-in option to change this for individual columns.

    If aligning text or numbers is critical for your design, a possible workaround is to use a Gallery. With a Gallery, you can fully customize the alignment of individual columns or fields. Here’s how you can do it:

    1. Insert a Vertical Gallery
    • Go to Insert > Gallery > Vertical Gallery and connect it to your data source.

    2. Add Labels for Each Column
    • Inside the Gallery, add a Text Label for each column and bind it to the respective data field using ThisItem.(ColumnName).

    3. Set Text Alignment
    • Select the Label, go to the Properties panel, and set the Text Align property to Right.

    While this approach takes more effort compared to using a Data Table, it gives you the flexibility to fully customize your table layout.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard