jusim Posted November 17, 2009 Report Share Posted November 17, 2009 hi, I bind my chart with an xml file and I need to get columns name in order to specify the property of each column. I use a XmlDataProvider and after loading my xml file I can't have any access to my columns name ( columns count = 0). Can you help me.Thank you Quote Link to comment Share on other sites More sharing options...
Frank Posted November 18, 2009 Report Share Posted November 18, 2009 Please post the code you are using to read the XML file and to retrive the column names. Quote Link to comment Share on other sites More sharing options...
jusim Posted November 18, 2009 Author Report Share Posted November 18, 2009 In fact, I use a string "Xml" not a file but it's the same. Code: xml = GetXmlChain(); XmlDataProvider xmlDataProvider = new XmlDataProvider(); xmlDataProvider.LoadXml(xml); int i = xmlDataProvider.Columns.Count;// i = 0?? chart.DataSourceSettings.DataSource = xmlDataProvider; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.