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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to populate grid with data from xml source.

Thread ID:





10261 Jan 28,2004 04:33 AM UTC Jan 28,2004 08:49 AM UTC WinForms 1
Tags: GridControl
Asked On January 28, 2004 04:33 AM UTC

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

Administrator [Syncfusion]
Replied On 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.


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon