title: Auto formatting datagridview's cell on when cell is left
body: <p>Hello I'm wondering how to format cell for 2 decimal positions everytime there is made some change. But I need to format only exact column so I thought that this might work:</p>
  
  <pre><code>private void dataGridView1_CellLeave(object sender, DataGridViewCellEventArgs e)
  {
     dataGridView1.Columns[2].DefaultCellStyle.Format = "n2";
  }
  </code></pre>
  
  <p>But it doesn't format the cell. Why?</p>