cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JoseF2
New Member

Data Table Align Column Data

Good morning

 

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

 

Your help will be much appreciated

JF

 
1 ACCEPTED SOLUTION

Accepted Solutions
v-xida-msft
Community Support
Community Support

Hi @JoseF2 ,

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,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
a33ik
MVP

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>
v-xida-msft
Community Support
Community Support

Hi @JoseF2 ,

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,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (3,231)