Hi
Rocky,
Thank
you for contacting Syncfusion Support.
We
analyzed your query. We regret to inform you that currently we don’t have a
support for bind the XML file directly to GridDataControl as a ItemSource. You
can achieve your requirement by using DataTable we read the XML file and save
into DataTable and set the DataTable as a ItemSource to GridDataControl.
Please
refer the below code snippet and sample in the following location:
Code
Snippet:
public MainWindow()
{
InitializeComponent();
DataSet
ds = new DataSet();
ds.ReadXml(@"..\..\Orders.xml");
DataTable dt0 = new DataTable();
dt0 = ds.Tables[0];
this.datagrid.ItemsSource
= ds.Tables[0];
}
|
Regards,
Farjana
Parveen A
Attachment:
GDC_XML_5b230d80.zip