title: Loading multiple textbox value to datagridview
body: <p>The following code gives me to take one row value from textbox to datagridview ......</p>
  
  <pre><code>private void button1_Click(object sender, EventArgs e)
  {
  
  DataTable table = new DataTable();
  table.Columns.Add("Course Name", typeof(string));
  table.Columns.Add("Credit", typeof(string));
  table.Rows.Add(txtName.Text.Trim(), txtCredit.Text.Trim());
  addcrsView.DataSource = table;
  
  }
  </code></pre>
  
  <p>When I give another value to textbox it just replaces the previous one. But I need to take both in datagrid view.</p>
  
  <p>As I am very beginner please put your answer details.</p>