Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

How to align Value or content of any List Page column in center?

(1) ShareShare
ReportReport
Posted on by 70

Exp. I want to align content of Location Code column  in sales order ListPage

Align.png

  • Suggested answer
    YUN ZHU Profile Picture
    81,365 Super User 2025 Season 1 on at
    RE: How to align Value or content of any List Page column in center?

    Hi, as for as I know, Business Central does not allow that level of visual control.

    It has only two default cases, if it is an amount (Decimal...), align it to the right, otherwise (Text, Code...), align it to the left.

    If you really want to do it, using add-in, creating a new html page might work. I haven't tried it.

    Hope the following two Erik's videos can give you some inspiration.

    https://www.youtube.com/watch?v=8TurwMAq54c&t=396s

    https://www.youtube.com/watch?v=SqazEmN5xeE&t=1801s

    Hope this helps.

    Thanks.

    ZHU

  • Rushiraj Suthar Profile Picture
    70 on at
    RE: How to align Value or content of any List Page column in center?

    I have tried Autoformat property as per your suggestion but it did not work as per current scenario.

     Erik Hougaard Saurav.Dhyani divyeshchitte yzhums Stefano Demiliani experts Any suggestions from your side.

  • Suggested answer
    Nitin Verma Profile Picture
    21,544 Moderator on at
    RE: How to align Value or content of any List Page column in center?

    Ok, Let me know if below link solve your problem.

    community.dynamics.com/.../al-right-alignment-of-a-text-field

    with the Autoformat property.

    Thanks.

  • Rushiraj Suthar Profile Picture
    70 on at
    RE: How to align Value or content of any List Page column in center?

    I think you haven't got my question properly. Actually what I needed is, I want to give alignment as "Center" to my "Location Code" column values.

  • Suggested answer
    Nitin Verma Profile Picture
    21,544 Moderator on at
    RE: How to align Value or content of any List Page column in center?

    Hi,

    Do you want to sort on Location code field?

    If yes, you can use

    Rec.SetCurrentKey("Location code")

    On you write above line of code On OnopnPage Trigger on that Sales orders List page.

    Thanks.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,110 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,866 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans