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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How can i create stackedheader and it's columns from code?

Thread ID:





115537 Jan 21,2014 03:36 PM UTC Jan 24,2014 09:15 AM UTC WPF 1
Tags: GridControl
Asked On January 21, 2014 03:36 PM UTC


We are in trial period, and i was wondering how can i create stackedheader and it's columns at runtime?

Seems i can't find that piece of code anywhere!

Thank in advance!

Shakul Hameed M [Syncfusion]
Replied On January 24, 2014 09:15 AM UTC

Hi omigis,


Thanks for contacting Syncfusion Support.


We have analyzed your query and we can able to achieve your requirement by using the following code snippet.


Code Snippet: [C#]

private void Button_Click(object sender, RoutedEventArgs e)


            GridDataStackedHeaderRow row = new GridDataStackedHeaderRow();

            row.Name = "Row3";

            GridDataStackedHeaderColumn column = new GridDataStackedHeaderColumn();

            column.HeaderText = "Stacked Header";

            column.ColumnSpan = 6;






We have prepared the sample based on your requirement and please find the attached sample.


Please let us know if this solution helps you.



Shakul Hameed



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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