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

How to set XML Data Source in GridView

1 Answer 75 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Silverlight Student
Top achievements
Rank 1
Silverlight Student asked on 11 May 2010, 06:10 PM
Hi,

How can I set the XML Data Source to RadGridView ? My XML is created dynamically so the number of columns may change each time.

Suppose if my XML has below format, how can I show it in Grid using XMLDataSource.

<DataSet>
<Records>
<ColumnA>Orange<ColumnA>
<ColumnB>Apple<ColumnB>
<ColumnC>Grapes<ColumnC>
<Records>
<Records>
<ColumnA>Banana<ColumnA>
<ColumnB>Carrrot<ColumnB>
<ColumnC>Onion<ColumnC>
<Records>
<DataSet>

So this will be a 2 row 3 column grid. I have to show this in XAML only. Any Idea ? Demo is not working in my browser.

Thanks in advance,

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 12 May 2010, 09:15 AM
Hello,

You can read the XML using DataSet/DataTable and bind this to the grid.

All the best,
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
Silverlight Student
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or