This is a migrated thread and some comments may be shown as answers.

[Solved] Windows 8 Raggrid change column header programmatically

1 Answer 25 Views
Grid for XAML
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Balraj
Top achievements
Rank 1
Balraj asked on 29 Oct 2013, 05:51 PM
Hello,

I am using RadDataGrid control of telerik in My Windows 8 XAML application. I have created 4 separate DataGridTemplateColumn. I need to bind the header name of each column dynamically from the a property that I am binding in the Itemsource. How can i achieve this?

1 Answer, 1 is accepted

Sort by
0
Rosy Topchiyska
Telerik team
answered on 30 Oct 2013, 02:20 PM
Hi Balraj,

Thank you for the question.

I have attached a sample project that demonstrates how to bind the Header of a DataGridTemplateColumn to a property of the RadDataGrid's DataContext. 

Let me know if this works for you.

Regards,
Rositsa Topchiyska
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Grid for XAML
Asked by
Balraj
Top achievements
Rank 1
Answers by
Rosy Topchiyska
Telerik team
Share this question
or