Binding to XML is not directly supported but DataTables are supported and a DataSet (containing DataTables) can be created from an XML document.
This is a simple xml file used in the examples below:
CopyXML
<?xml version="1.0" encoding="utf-8"?>
<people>
<person>
<name> John </name>
<age> 30</age>
</person>
<person>
<name> Sarah </name>
<age> 45</age>
</person>
<person>
<name> Tom</name>
<age> 50 </age>
</person>
</people>You have to create a DataSet instance from the xml file. For the sample xml file above, the created DataSet contains only one DataTable which is set as RadGridView data source. Please refer to this topic if you want to create hierarchy.
Copy[C#] Binding to XML
DataSet xmlDataSet = new DataSet();
xmlDataSet.ReadXml("..\\..\\GridView\\PopulatingWithData\\gridXml.xml");
this.radGridView1.DataSource = xmlDataSet.Tables[0];
Copy[VB.NET] Binding to XML
Dim xmlDataSet As New DataSet()
xmlDataSet.ReadXml("..\\..\\GridView\\PopulatingWithData\\gridXml.xml")
Me.RadGridView1.DataSource = xmlDataSet.Tables(0)