Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2715
UltraGrid xml datasource
posted

hi!

Can the ultragrid have it's datasource as a xml file ?

If yes, how ? Can you point me to some samples ?

Thank you!

  • 2715
    Verified Answer
    Offline posted

    DataSet ds = new DataSet();

              DataSet set = new DataSet();

                byte[] buffer = Encoding.UTF8.GetBytes(xmlMessage);

                using (MemoryStream stream = new MemoryStream(buffer)) {

                    XmlReader reader = XmlReader.Create(stream);

                    set.ReadXml(reader);

                }

     

     

                ultraGrid1.SetDataBinding(set, "ROW");