My XElements.Elements()is returning this XML
<
Student
>
<
Element
Name
=
"abc"
Class
=
"4"
Section
=
"A"
/>
<
Element
Name
=
"abc"
Class
=
"4"
Section
=
"A"
/>
<
Element
Name
=
"abc"
Class
=
"4"
Section
=
"A"
/>
</
Student
>
and i need to bind this data to the columns of my gridview as shown in XAML :
<
telerikGridView:RadGridView.Columns
>
<
telerikGridView:GridViewDataColumn
Header
=
"Name"
Width
=
"*"
IsSortable
=
"True"
HeaderCellStyle
=
"{StaticResource GridViewHeaderCellStyle}"
IsReadOnly
=
"False"
DataMemberBinding
=
"{Binding Name}"
/>
<
telerikGridView:GridViewDataColumn
Header
=
"Class"
Width
=
"*"
IsSortable
=
"True"
HeaderCellStyle
=
"{StaticResource GridViewHeaderCellStyle}"
IsReadOnly
=
"False"
DataMemberBinding
=
"{Binding Class}"
/>
<
telerikGridView:GridViewDataColumn
Header
=
"Section"
Width
=
"*"
IsSortable
=
"True"
HeaderCellStyle
=
"{StaticResource GridViewHeaderCellStyle}"
IsReadOnly
=
"False"
DataMemberBinding
=
"{Binding Section}"
/>
</
telerikGridView:RadGridView.Columns
>
I have tried to bind gridview with Xelement.Elements() dynamically ..
Number of rows and columns generated are correct but cells are empty. respective attributes of the element are not binded properly.
Is there any binding format or different method to bind attributes of element in XML to gridview ??