The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
How can I set the height of the datagrid as auto? I want the datagrid height to follow the contents of the grid. I don't want scrolling on my grid. I want it to generate the grid with height according to the contents of the gird.
IMIndhumathy Malayappan Syncfusion Team August 4, 2017 11:21 AM UTC
Hi Gangatharan Baskaran,
Thank you for contacting Syncfusion Support,
I have checked your query and you can set the height of the datagrid based on the content by using the following way and you can also know the height of the datagrid by multiplying the records count with rowheight and then add the header rowheight to it.
Please note that this method is not effective when you are using QueryRowHeight since each row height varies. Please revert us if you have any other concerns.