Unable to dynamically change the row height of rows in the detail grid of a master-detail grid.

In my application, I allow customization of the font sizes used in the application.  When the font size changes, I adjust several resources that are referenced as DynamicResource in the XAML to accomadate the different font size.  The font size adjustments through dynamic resources work great in the SfDataGrid.  I'm having trouble with the row height.  

In my master-details SfDataGrid, on both the outer grid and the inner grid, I have set:

RowHeight = "{DynamicResource GridRowHeight}"
HeaderRowHeight = "{DynamicResource GridHeaderHeight}"

with those values set as double values in my resource dictionary.

The outer grid row heights respond nicely when the resources are modified at runtime.  The inner grid row heights do not respond at all until the application is restarted.  Also, the QueryRowHeight event does not seem to be called.  Is there some way I can dynamically adjust the row height of the details grid at runtime?  Preferably for all grids in my application?

Thanks,

John


Attachment: RowHeightProblem_927a25d3.png

1 Reply

SP Sreemon Premkumar Muthukrishnan Syncfusion Team December 15, 2025 12:36 PM UTC

Hi John,

We have reviewed your query. We regret to inform you that the Master-Details view in SfDataGrid does not support the QueryRowHeight event. The QueryRowHeight event is not raised when SfDataGrid is using a Master-Details view. This is a known limitation of SfDataGrid, which has already been documented in our User Guide. Unfortunately, there is no workaround to change the row height at runtime or on demand to meet your requirement.

User Guide: https://help.syncfusion.com/windowsforms/datagrid/masterdetailsview#master-details-view-limitations

Regards,

Sreemon Premkumar M.


Loader.
Up arrow icon