title: c# winforms - DataGridView Save position after reload
body: <p>This is my code:</p>
  <pre class="lang-cs prettyprint-override"><code>private void getData(string selectCommand) 
  {
      string connectionString = @ &quot;Server=localhost;User=SYSDBA;Password=masterkey;Database=C:\data\test.fdb&quot;;
  
      dataAdapter = new FbDataAdapter(selectCommand,
          connectionString);
      
      DataTable data = new DataTable();
      dataAdapter.Fill(data);
      bindingSource.DataSource = data;
  }
  
  private void button1_Click(object sender, EventArgs e) 
  {
      getData(dataAdapter.SelectCommand.CommandText);
  }
  
  private void Form1_Load(object sender, EventArgs e) 
  {
      dataGridView1.DataSource = bindingSource;
      getData(&quot;SELECT * FROM cities&quot;);
  }
  </code></pre>
  <p>After reload data on button1 click event, cell selection jumps on first column and scrollbars is reset.
  How to save position of DataGridView?</p>