web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
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

I have the same question (0)
  • Verified answer
    GirishS Profile Picture
    27,825 Moderator 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.

  • VoltesDev Profile Picture
    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.

  • Suggested answer
    GirishS Profile Picture
    27,825 Moderator 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.

  • GirishS Profile Picture
    27,825 Moderator 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.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 2,028

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 878 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 579 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans