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. Image for the cookie policy date
close icon

How to populate grid with data from xml source.

- How to populate grid with data from xml source? - Is there inbuild support for xml parsing?

1 Reply

AD Administrator Syncfusion Team January 28, 2004 08:49 AM UTC

There is no built-in support for loading an abitrary XML file. If the XML represents a dataset with datatables, then you can use DataSet.ReadXml. If you are using a GridControl, you could read and parse the XML in an array or arraylist, and then use the grid.PopulateValues method to move teh array values into the grid. (Or you could put the value directly into teh grid yourself, but you should not do it using an indexer on teh grid. Instead you should put it directly into the GridData object. See this thread. http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=8704) If you are using a GridDataBouldGrid, you should populate a DataTable from your XML and then set that DataTable to be teh grid''s DataSource.

Live Chat Icon For mobile
Up arrow icon