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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to customize the height of Stacked Header Row in SfDataGrid?

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.

 

C:\Users\Adithi\AppData\Roaming\Skype\My Skype Received Files\modified.png

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.

C#

The above RowHeight value changes are set to Stacked Header Row as shown in the following screenshot.

 

C:\Users\Adithi\AppData\Roaming\Skype\My Skype Received Files\modif.png

Figure 2: Customized Row Height

 

Sample Links:

WPF

WRT

UWP

Article ID: Published Date: Last Revised Date: Platform: Control:
6080 01/22/2016 01/22/2016 UWP SfDataGrid
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon