title: C# FormatException in DataGridView
body: <p>I created a DataGridView with some columns. The order columns only allow users enter int number. It throws the FormatException when I enter "j" (for example) and I try to add try catch to fix the problem, but it looks does not work..</p>
  
  <pre><code>private void Form1_Load(object sender, EventArgs e)
  {
    try{
       this.sourceTable = new DataTable(TableName);
       this.sourceTable.Columns.Add(new DataColumn(OrderCol, Type.GetType("System.Int32")));
  
       dataGridView1.DataSource = sourceTable;
    }catch(FormatException){
       MessageBox.Show("Please enter a number");
    }
  }
  </code></pre>