title: WPF - Get specific value from List<class>
body: <p>so i have <code>List&lt;data&gt; dataList</code> that includes <code>int idx, string tag, string value</code> with this code :</p>
  
  <pre><code>List&lt;data&gt; dataList = new List&lt;data&gt;();
  foreach (DataRow row in ds.Tables["info"].Rows)
  {
      dataList.Add(new data() { idx = (int)row["idx"], tag = (string)row["tag"], value = (string)row["value"] });
  }
  </code></pre>
  
  <p>I want to get specific value from idx,tag,value from specific index.
  For example, if there is 3 rows from idx,tag,value i want to put all the value in textbox-es so i create 9 textbox-es for each value. I tried this code but i only got the last row values. And i realise that my code here is to get all value and only print the last one.</p>
  
  <pre><code>foreach (data item in dataList)
  {
      idx1.Text = item.idx.ToString();
      tag1.Text = item.tag.ToString();
      value1.Text = item.value.ToString();
  }
  </code></pre>
  
  <p>But i realise that my code here is to get all value and only print the last one. How can i fill all my textbox with all value in dataList?</p>