title: How to prevent DataGridView from flickering when scrolling horizontally?
body: <p>I am using windows forms C#.</p>
  <p><img src="https://i.stack.imgur.com/i4zzl.jpg" alt="Screen Shot" /></p>
  <p>As shown in the screen shot, I have a Form which has a user control, a tab control and a DataGridView (30 rows and 17 columns). I read data from SQL Server to fill the DataGrdiView.</p>
  <p><strong>The issue:</strong></p>
  <p>When I scroll horizontally the <code>DataGridView</code> flickers a lot. However scrolling vertically works perfect with no flickering.</p>
  <p>I had a look <a href="https://stackoverflow.com/questions/2041782/how-to-prevent-rows-in-datagrid-from-flickering-while-application-is-running">here</a>, <a href="https://stackoverflow.com/questions/63974/flickering-during-updates-to-controls-in-winforms-e-g-datagridview">here</a>, <a href="https://stackoverflow.com/questions/63974/flickering-during-updates-to-controls-in-winforms-e-g-datagridview">here</a> and <a href="https://stackoverflow.com/questions/11069397/how-to-stop-flickering-in-datagridview">here</a> but none of them related to my issue.</p>
  <p>Anyone knows any solution to prevent <code>DataGridView</code> from flickering when scrolling horizontally.</p>