Our What's New in v24.1 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.
This example demonstrates a way of binding a data-aware control (XtraGrid, XtraPivotGrid, XtraVerticalGrid, etc.) to data stored in an XML file. Note that specific controls may need additional customization after the control is bound to a data source. For more information refer to documentation of the corresponding control.
The code sample below binds a GridControl to XML data stored in an XML file.
// Create a DataSet and fill it with data from an XML file.
DataSet xmlDataSet = new DataSet();
xmlDataSet.ReadXml("e:\\DBs\\Cars.xml");
// Bind the grid to the DataSet.
gridControl1.DataSource = xmlDataSet.Tables[0];
' Create a DataSet and fill it with data from an XML file.Dim XMLDataSet AsNew DataSet()
XMLDataSet.ReadXml("e:\DBs\Cars.xml")
' Bind the grid to the DataSet.
GridControl1.DataSource = XMLDataSet.Tables(0)
Was this page helpful?
Thanks for your feedback!
How can we improve this help topic?
Additional comments/thoughts:
If you have any questions, submit a ticket to our Support Center.