SfDataGrid allows you to have additional unbound header rows, known as Stacked Header Rows that span across Grid Columns. You can group two or more columns under each of the Stacked Header. A Stacked Header Row is viewed as a set of Stacked Columns, where each Stacked Column contains a number of Child Columns. By default, the Stacked Header Row’s height is constantly maintained as 24 as shown in the following screenshot.
Figure 1: Default row height of the Stacked Header Row
You can customize the height of Stacked Header Row by accessing the RowHeight property of the Visual Container. You can access the Visual Container by using the GetVisualContainer() extension method that exists in the Syncfusion.UI.Xaml.Grid.Helpers namespace in SfDataGrid.
Calculated here is the count of the StackedHeaderRows and RowHeight is applied to each row of the Stacked Header.
The above RowHeight value changes are set to Stacked Header Row as shown in the following screenshot.
Figure 2: Customized Row Height
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|