title: C# : DataGridView cell alignment isn't the same for all the rows?
body: <p>I'm again asking about C#. I just finished loading my data on a DataGridView but my problem (not a real problem) is that the cell alignement isn't the same for all the rows, what I want is to make the informations loor normal like any DataGridView but That's what I get : </p>
  
  <p><img src="https://i.stack.imgur.com/PvNKi.jpg" alt="enter image description here"></p>
  
  <p>I tried to edit the alignement proprety like this :</p>
  
  <p><img src="https://i.stack.imgur.com/K24EB.jpg" alt="enter image description here"></p>
  
  <p>But still get the same thing..</p>
  
  <p>EDIT : This is the propreties of my datagridview from designer.cs : </p>
  
  <pre><code>// 
          // dataGridView1
          // 
          this.dataGridView1.AllowUserToOrderColumns = true;
          dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
          this.dataGridView1.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
          this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
          this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
          this.id,
          this.forage_id,
          this.caisse_id,
          this.unite_cotes,
          this.cote_tete,
          this.cote_pieds,
          this.systemes,
          this.epoque,
          this.formations,
          this.storage,
          this.categorie,
          this.status,
          this.remarques,
          this.nb_caisses});
          this.dataGridView1.Location = new System.Drawing.Point(6, 19);
          this.dataGridView1.Name = "dataGridView1";
          this.dataGridView1.Size = new System.Drawing.Size(1120, 349);
          this.dataGridView1.TabIndex = 0;
          // 
  </code></pre>