title: Touch screen - DataGridView not scrolling to the end
body: <p>I have an application running on a touch screen. In it i have a DataGridView, and i have this problem:</p>
  
  <p>When i scrool it using the touch screen it does not go to the end.</p>
  
  <p>When i scrool it using the mouse it does go to the end.</p>
  
  <p>Since my last touch screen related question did not get much love or answer i made a video to better demonstrate my problem: <a href="https://www.youtube.com/watch?v=xTHdh196gEc&amp;list=WL&amp;index=38" rel="nofollow">LINK TO THE VIDEO</a></p>
  
  <p>As u can see, when i use the touch screen there is a record missing and when i go to the scrool bar with the mouse its like the DataGridView adds another record. This has happen with more than just 1 row.</p>
  
  <p>Any suggestions ? </p>
  
  <p><strong>Info:</strong></p>
  
  <p>App is running on win 10.
  Made in .net(c#)(framework 4)</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p><strong>right now i am trying this but its still too unpredictable</strong></p>
  
  <pre><code>            int totalHeight = 0;
              foreach (DataGridViewRow row in dataGridView1.Rows)
                  totalHeight += row.Height;
  
              MessageBox.Show("Total H: " + totalHeight.ToString() + " Height: " + dataGridView1.Height.ToString() + " VO: " + dataGridView1.VerticalScrollingOffset);
  
              if (totalHeight - dataGridView1.Height &lt; dataGridView1.VerticalScrollingOffset)
              {
                  int diferenca = dataGridView1.RowCount - (dataGridView1.FirstDisplayedScrollingRowIndex + dataGridView1.DisplayedRowCount(false));
  
                  MessageBox.Show("Diferenca- " + diferenca.ToString() + "RowCount- " + dataGridView1.RowCount + "Soma- " + (dataGridView1.FirstDisplayedScrollingRowIndex + dataGridView1.DisplayedRowCount(false)));
  
                  if (diferenca != 0)
                  {
                      dataGridView1.FirstDisplayedScrollingRowIndex = dataGridView1.FirstDisplayedScrollingRowIndex + diferenca;
                  }
              }
  </code></pre>