Hi Pierre,
Thanks for using Syncfusion products.
We have analyzed your query and you can bind
XML to GridDataContorl using datatable as in the below code snippet,
Code snippet:
<Window.Resources>
<XmlDataProvider x:Name="MyXMlData" x:Key="MyKey" Source="MyXml.xml" Path="users/user"
/>
</Window.Resources>
<syncfusion:GridDataControl x:Name="MyGrid" AllowEdit="True" ColumnSizer="AutoOnLoad" >
</syncfusion:GridDataControl>
DataSet dataSet = new DataSet();
dataSet.ReadXml(@”\..\..\MyXml.xml”);
DataTable datatable = dataSet.Tables[0];
DataView dataView = new DataView(dataSet.Tables[0]);
MyGrid.ItemsSource = datatable;
|
We
have created the sample regarding this and you can find the sample from the
below location.
Location:
XML_Binding_SYNCGrid.zip
Please
let us know, if you have any query.
Regards,
Shakul
hameed