Hi Judi,
Greetings from Syncfusion.
Query: Set header row height independent of row height - I have an SfGrid where I set RowHeight="70". This also makes the Header Row 70. How can I set the header row height to be a different value - for example 35px?
We have validated your query and we suggest you to achieve your requirement by using below CSS. Find the below code snippets and sample for your reference.
|
<SfGrid DataSource="@Orders" Height="280" RowHeight="70">
<GridColumns>
. . .
</GridColumns>
</SfGrid>
@code {
public List<Order> Orders { get; set; }
. . .
}
<style>
.e-grid th.e-headercell {
height: 35px !important; //for setting height for header row
}
</style> |
Sample:
Please let us know if you have any concerns.
Regards,
Rahul