title: Missing DataGridview scrollbar C# WinForm
body: <p>I have WindowsForm solution with a datagridview to display the data that I read from text file. The number of rows from data is large, about 10.000 lines.</p>
  
  <p>When I run the program from visual studio, it seems fine. But when I run it from the Debug folder (.exe file), then something goes wrong with my datagridview. The scroll-bar is missing. </p>
  
  <p>Here is how I fill the datagridview:</p>
  
  <pre><code>private void LoadInputData()
      {
          try
          {
              InputDataGridView.DataSource = null;
              InputDataGridView.Refresh();
              InputDataGridView.DataSource = inputDataTable;
              DisableCells();
          }
          catch (Exception ex)
          {
              MessageBox.Show(ex.ToString(), "Load Input Data Error!", MessageBoxButtons.OK, MessageBoxIcon.Error);
          }
      }
  </code></pre>
  
  <p>I have a function that is designed to fill the <code>inputDataTable</code> from a text file. The <code>DisableCells()</code> function is to lock the datagridview (i.e. set the <code>readonly properties</code> be <code>true</code>) and customize the column length.</p>
  
  <p>The data still can be scrolled by mouse. How does it happen? How do I solve this?</p>
  
  <p>Here is preview of my program: <a href="http://i58.tinypic.com/qn6xys.jpg" rel="nofollow">link</a></p>