Welcome to the Xceed Community Sign in | Join | Help
Community Search  

How to insert a Listbox inside a grid cell with xml binding

  •  04-30-2008, 3:21 PM

    How to insert a Listbox inside a grid cell with xml binding

    Hi Smile, I´m trying to insert a listbox into a cell, but still I couldn´t.

    I´m loading a xml like this

    StringBuilder data = new StringBuilder();

    data.Append("<r>");

    data.Append("   <name>William</name>");

    data.Append("   <p>");

    data.Append("    <n>name1</n>");

    data.Append("    <v>value1</v>");

    data.Append("   </p>");

    data.Append("   <p>");

    data.Append("    <n>name2</n>");

    data.Append("    <v>value2</v>");

    data.Append("   </p>");

    data.Append("</r>");

    xml.LoadXml(data.ToString());

    this.DataContext = xml;

     

    I would like to render a Grid with one column binded to the "name" node and other column to a list of "p" nodes, where I want to show a listbox in that columns showing the diferents values of the nodes "n" and "v"..

    I was trying to do this by difrents ways but I couldn´t. Can you help me?

    Thanks!

    Filed under: ,
View Complete Thread
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2008 Xceed Software Inc.