title: how to bind datatable to datagridview in c#
body: <p>I need to bind my <strong>DataTable</strong> to my <strong>DataGridView</strong>.
  i do this:</p>
  <pre><code>        DTable = new DataTable();
          SBind = new BindingSource();
          //ServersTable - DataGridView
          for (int i = 0; i &lt; ServersTable.ColumnCount; ++i)
          {
              DTable.Columns.Add(new DataColumn(ServersTable.Columns[i].Name));
          }
  
          for (int i = 0; i &lt; Apps.Count; ++i)
          {
              DataRow r = DTable.NewRow();
              r.BeginEdit();
              foreach (DataColumn c in DTable.Columns)
              {
                  r[c.ColumnName] = //writing values
              }
              r.EndEdit();
              DTable.Rows.Add(r);
          }
          SBind.DataSource = DTable;
          ServersTable.DataSource = SBind;
  </code></pre>
  <p>But all i got is <strong>DataTable</strong> <em>ADDS NEW</em> columns to my <strong>DataGridView</strong>.
  I don't need this, i just need to write under existing columns.</p>