'Multi-cell Row and Column Headers wpf

After a lot of google search, I got an example on merging Header columns and adding rows as per my requirement but it is c1flexgird code I am not able to convert in WPF main form. https://www.grapecity.com/componentone/docs/wpf/online-flexgrid/MultipleCellRow.html

My data structure also like

col1 | col1 | col2 | col2 | col3 | col3

and I want add rows like below

col1  | Col2  | col3
A | B | A | B | A | B

Please have a look on my issue to fix my problem. Thanks



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source