Hi Owen,
Thanks for contacting Syncfusion support.
We checked your query, based on that, we could see that you want to persist the default row height value for the header row while changing Grid’s row height using rowHeight property. For this, we suggest you to use the below CSS to achieve your requirement.
Code Example:
<div class="content">
<ejs-grid id="Grid1" height="400" dataSource="ViewBag.Datasource" rowHeight="50" allowPaging="true">
<e-grid-columns>
<e-grid-column field="OrderID" headerText="Order ID" width="180" isPrimaryKey="true"></e-grid-column>
<e-grid-column field="Freight" headerText="Freight" format="C2" width="200"></e-grid-column>
<e-grid-column field="CustomerID" headerText="Customer ID" width="180"></e-grid-column>
<e-grid-column field="ShipCity" headerText="Ship City" width="180"></e-grid-column>
</e-grid-columns>
</ejs-grid>
</div>
<script>
</script>
<style>
.e-gridheader .e-headercontent tr {
height: 32px !important; // it persist the default row height value for the header row
}
</style> |
Please get back to us if you need further assistance.
Regards
Praveenkumar G