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

How to bind RadGridView with XML?

1 Answer 51 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Gauri
Top achievements
Rank 1
Gauri asked on 06 Aug 2010, 11:19 AM
Hello,
I have the xml written as below:
<subject>
  <sub1>maths</sub1>
  <marks>80</Marks>
</subject>
<subject>
.
.
.

I want to bind this xml with RadGridView. How to do this?
Thanks.

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 06 Aug 2010, 12:32 PM
Hello,

 You can transform the XML to collection of objects using LINQ to XML and assign this collection to the grid ItemsSource. 

Regards,
Vlad
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Gauri
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or