cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Community Support
Community Support

Re: Data Table Align Column Data

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
Highlighted
MVP

Re: Data Table Align Column Data

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>
Highlighted
Community Support
Community Support

Re: Data Table Align Column Data

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
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

Users online (8,045)