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 / Reliable tab-spacing o...
Power Apps
Unanswered

Reliable tab-spacing of text?

(0) ShareShare
ReportReport
Posted on by 350

In order to reduce the number of text boxes in my gallery, and to avoid using a datatable due to its limited formatting options, I wish to use ideally one text box and space out the entries appropriately. (It looks like table of data). At home, I found using Char(9) to be appropriate, with e.g. "ThisItem.Name & Char(9) & Char(9) & ThisItem.Price" etc., but at work, I find that the Char(9) seems to be equivalent only to a typical space gap. Is there any appropriate and reliable way to appropriately space or pad entries? I did try to do a Left(ThisItem.Name & " ",10), say, but the character spacing differs and can still lead to misaligned entries.

Categories:
I have the same question (0)
  • Verified answer
    CarlosFigueira Profile Picture
    on at

    A gallery with properly placed label controls would be the best way to create such a table (if the data table doesn't have what you need), but if you want to go the text box (label?) route, then you will need to use a fixed-size font (such as 'Courier New') in the text box, otherwise the characters will be out of order.

    Another alternative, if you're comfortable with HTML, is to use a HTML Viewer control, where you can have more control over formatting of each individual cell in a table.

    The attached app shows both alternatives. To open it, save it locally, go to https://create.powerapps.com, select Open and Browse Files, then find the place where you saved it.

    Hope this helps!

  • xzDan Profile Picture
    350 on at

    Hi

    Thanks a lot, the Courier New option seems to be working well. Btw I am doing this because with several controls for individual labels (8 or so columns), it seems noticeably faster to have one text box.

    For the HTML, as im not too familar with it, is there a quick way of padding cells without an entire table? My intent is each gallery option has 'columns'. I dont know if the way your app (thank you for that) can allow for the entries to be selected as that is what I am needing from the gallery.

     

    Edit: Whoops I can just keep only the header part!

     

    And yeah a datatable would be ideal, but unfortunately has no conditional formatting

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 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard