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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :

How to : Increase the height of the grid in D365FO forms

vinitgoyal2005 Profile Picture vinitgoyal2005 6,332

A common requirement in D365FO form design is increasing grid height to cut down on scrolling. This includes standard forms. Changing any property on the form desing doesnt seems to work for many cases. Where it doesnt work at design time. It can be fixed by changing the code for runtime. Below is the simple code change:

void  run()
{
    next run();
    FormGridControl periodGrid; //Grid Contorl
    periodGrid = PeriodStatisticGrid as FormGridControl; // PeriodStatisticGrid is the control name.

     if (periodGrid)

    {
        periodGrid.visibleRowsValue(15); //setting the value to show 15 records.
    }
}

Hope this will be helpful.


This was originally posted here.

Comments

*This post is locked for comments