We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

XML Data Binding Demo

Thread ID:

Created:

Updated:

Platform:

Replies:

110745 Aug 23,2013 02:20 AM UTC Dec 17,2013 08:29 AM UTC WPF 3
loading
Tags: GridControl
Pierre Gilbert
Asked On August 23, 2013 02:20 AM UTC

Hello, could you please advise where I can find an XML Data Binding Demo for your GridData Control.

 

Thanks in advance,


Shakul Hameed M [Syncfusion]
Replied On November 25, 2013 02:09 PM UTC

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


Pierre Gilbert
Replied On December 13, 2013 03:40 PM UTC

Thanks this answer my question.


Shakul Hameed M [Syncfusion]
Replied On December 17, 2013 08:29 AM UTC

Hi Pierre ,

 

Thanks for your update.

Please get back to us, if you need further assistance,

 

Thanks,

Shakul Hameed



CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;