title: How i can add new row into datagrid in wpf?
body: <p>I'm trying to Insert all Rows values of DataGrid for Once every Click of a button ,
  so if user inserted three times display on datagrid three rows,I have a class there is code </p>
  
  <pre><code>    public string Name { get; set; }
      public string Job { get; set; }
      public string Phone { get; set; }
  
      public MyGrid(string Vendors,string Jobs,string Tel)
      {
          Name = Vendors;
          Job = Jobs;
          Phone = Tel;
      }
  </code></pre>
  
  <p>and i called into button click event here </p>
  
  <pre><code>       static List&lt;MyGrid&gt; gride;
          gride = new List&lt;MyGrid&gt;();
          for (int i = 0; i &lt; 3; i++)
          {
              var myg1 = new MyGrid(textBox10.Text, textBox11.Text, textBox12.Text);
              gride.Add(myg1);
  
          }
  
          dataGridView1.ItemsSource = gride; 
  </code></pre>
  
  <p>this code it's working but there is the one problem,When add data is supposed to appear in a one row, but appears within 3 rows in the one click ,
  I want to show one row in per click with different data .
  How i can add new row  per click on the button in wpf</p>