We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Rows autofit


Is there any way to autofit rows in SFGrid component?

Thank you.

3 Replies

DP Dean Parker March 13, 2023 06:15 PM UTC

Hi Paulo

You can add the AutoFit="true" to each Grid Column.

<gridcolumn field="@nameof(model.Id)" headertext="Id" allowediting="false" autofit="true"></gridcolumn>

PP Paulo P March 14, 2023 05:00 PM UTC

Hi Dean.

I'm talking about ROWS autofit, not columns autofit.

Thank you.

NP Naveen Palanivel Syncfusion Team March 20, 2023 05:10 AM UTC

Hi paulo,

We understand you want to row autofit, before proceeding further with your requirement kindly share the below details to validate further at our end.

  1. Could you please explain about your requirement for row autofit,
  2. Could please share a screenshot or video demo what you are excepting it is very useful to us.

The above-requested details will be very helpful for us to validate the reported query at our end and provide the solution as early as possible.


Naveen Palanivel

Live Chat Icon For mobile
Up arrow icon