title: Binding with c#
body: <p>I have this class</p>
  
  <pre><code>public class Entidad 
  {       
          public String Campo { get; set; }       
          public String ValorNuevo { get; set; }      
  }
  </code></pre>
  
  <p>And this function</p>
  
  <pre><code>foreach(List&lt;Entidad&gt; fila in elementosDetalle)
  {
  
      ListView vistaLista = new ListView();       
      GridView vistaCuadricula = new GridView();
      vistaLista.ItemsSource = fila;
  
     foreach(Entidad campo in fila)
     {
  
       GridViewColumn columna = new GridViewColumn() { Width = 50, Header =campo.Campo, DisplayMemberBinding = new Binding("ValorNuevo") };
      vistaCuadricula.Columns.Add(columna);                   
      }                   
  
    vistaLista.View = vistaCuadricula;
    stkPanel.Children.Add(vistaLista);                
  
  }
  </code></pre>
  
  <p>The result is:</p>
  
  <p><a href="https://i.stack.imgur.com/54ufp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/54ufp.png" alt="enter image description here"></a></p>
  
  <p>And I made a Collection of this class, I'm doing a Binding into a GridView, but I really need is make a in horizontal way; I tried by adding items but it does not work. Please I really need help.</p>
  
  <p>Thank you a lot.</p>