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. Image for the cookie policy date
close icon

StackedHeader style

How do you style the GridDataStackedHeaderRow so it does not clip data? 

 

I need to display extra information in the StackedHeader but it is being clipped (looks like the panel template is a StackPanel). How do you make the StackedHeader stretch to its content height?


1 Reply

KR Kannan R Syncfusion Team December 4, 2012 10:46 AM UTC

Hi Phil,

 

Thanks for your update,

 

Your requirement can be achieved in two ways, please find it in below

 

To set Row height

Row height can be set using below code snippet

 

Code Snippet[Xaml]:

  <syncfusion:GridDataControl Name="dataGrid"
                              DefaultHeaderRowHeight="70"

 

When your requirement is to set height for first header row.

First header row height can be set by using below code snippet.

 

Code Snippet[C#]:

 

void dataGrid_Loaded(object sender, RoutedEventArgs e)
        {
            this.dataGrid.Model.RowHeights[0] = 70;
        }

 

 

 

 

We have also prepared sample based on our requirement and it can be downloaded from below location.

 

Sample Location:  105784Sample.zip

 

Please let us know if you have any queries,

 

Thanks,

Kannan.R


Loader.
Live Chat Icon For mobile
Up arrow icon