Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Answered

How to make a grid control Height flexible ?

(0) ShareShare
ReportReport
Posted on by

Hi,

I have a grid which the form string control is set with this property : 

- Display Height = -1 

- Display Height mode = Auto

- Height mode = Auto to content

All these actually their Default value. Does it mean it will be flexible height ?

But in the UI, it will be like this ->

pastedimage1673494130738v2.png

Above image is displaying 2 rows, and we can see it is not flexible to its content. Is there a way to make it flexible ?

Thanks

  • GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 on at
    RE: How to make a grid control Height flexible ?

    Also keep in mind that EDT you are using is a custom EDT.

    If you are using standard EDT - Don't change that as it will affect all the places where the EDT is used.

    Thanks,

    Girish S.

  • Suggested answer
    GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 on at
    RE: How to make a grid control Height flexible ?

    Auto to content will result in a size which is large enough to display the control. But increasing the height of the control based on the content will make the grid looks not good.

    There is another option to adjust the height of the control - On the EDT property you can mention the Display Height - By default it is set to "Auto" - You can change that and set it to fixed value.

    But adjusting this will increase the height, but the other columns in the grid will have more space which will make the grid not look good.

    You can change that Display height property on EDT and see the output of the grid. Based on the output you can decide whether to set the display height or leave it as it is.

    Thanks,

    Girish S.

  • VoltesDev Profile Picture
    VoltesDev on at
    RE: How to make a grid control Height flexible ?

    Hi Girish,

    To change the display height, which means will be "fixed" ? Also I'm wondering what "Auto to content" means, as at first I thought it will be follow the content, but maybe it means it have scrollbars.

    Anyhow, this is not a big problem.

    Thanks.

  • Verified answer
    GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 on at
    RE: How to make a grid control Height flexible ?

    Hi VoltesDev,

    I think this is standard behavior - You can refer to standard form like - Account payable parameters form - Number Sequences (Tab) - You can see the scroll bar for the description field.

    If you want more flexible to remove scrollbars - Try changing the display height - display height mode and check.

    Also, if you increase the height, I guess the look of the grid will not good. You will have columns that is having contents in single line and if you increase the height of the one column it will affect other columns and you will see some blank spaces.

    Thanks,

    Girish S.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,979 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,848 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans