title: c# ms access database error ColumnCount property cannot be set on a data-bound DataGridView control
body: <p>Please help me to know whats wrong with my code, I'm stuck on this error, So please help me. thanks</p>
  
  <pre><code>       InitializeComponent();
  
  
          studentInfoDataGridView.ColumnCount = 6;
          studentInfoDataGridView.Columns[0].Name = "ID";
          studentInfoDataGridView.Columns[1].Name = "FirstName";
          studentInfoDataGridView.Columns[2].Name = "LastName";
          studentInfoDataGridView.Columns[3].Name = "Course";
          studentInfoDataGridView.Columns[4].Name = "StudentSection";
          studentInfoDataGridView.Columns[5].Name = "StudentNumber";
  
  
  
          studentInfoDataGridView.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
  
          studentInfoDataGridView.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
          studentInfoDataGridView.MultiSelect = false;
  </code></pre>