title: ASP:RadioButtonList Databind Custom Object
body: <p>Hey guys, I'm having a bit of trouble with my ASP:RadioButtonList, searched Google and SO, no luck, can you help me out?</p>
  
  <p>I'm having trouble databinding. I've got a custom class that looks like this:</p>
  
  <pre><code>public class myClass{
    public myInnerClass{
      public int myID;
      public String myTextField;
      /* other fields*/
    }
    public List&lt;myInnerClass&gt; myList;
  }
  </code></pre>
  
  <p>And I'm trying to bind a Generic List of it's inner class to a radiolist:</p>
  
  <pre><code>protected void Page_Load(object sender, EventArgs e){
    myClass data = anotherClass.getData();
    uxRadioList1.DataSource = data.myList;
    uxRadioList1.DataTextField = "myTextField";
    uxRadioList1.DataValueField = "myID";
    uxRadioList1.DataBind();
  }
  </code></pre>
  
  <p>But it just won't go. When I don't specify the DataTextField and DataValueField field it binds, but it displays 'myClass+myInnerClass' . How do I do this properly?</p>