title: DataGridViewMaskedTextColumn for DataGridView in Winforms
body: <p>I am trying to mask DataGridView DateTime column, to achieve this I tried custom control made by J Thomas form codeproject <a href="http://www.codeproject.com/Articles/26005/DataGridViewColumn-Hosting-MaskedTextBox" rel="nofollow noreferrer"><strong>Link</strong></a>; after adding in DataGridView and while trying to enter(keypress) datetime value i am getting below error "System.FormatException": <img src="https://i.stack.imgur.com/Q1t6F.png" alt="System.FormatException"></p>
  
  <p>my winform designer code I made it as below:</p>
  
  <pre><code>this.dataGridViewTextBoxColumn9 = new JThomas.Controls.DataGridViewMaskedTextColumn();
  
          // dataGridViewTextBoxColumn9
          // 
          this.dataGridViewTextBoxColumn9.DataPropertyName = "DOB";
          this.dataGridViewTextBoxColumn9.HeaderText = "DOB";
          this.dataGridViewTextBoxColumn9.Mask = "00/00/0000";
          this.dataGridViewTextBoxColumn9.Name = "dataGridViewTextBoxColumn9";
  </code></pre>
  
  <p>Is there any other way I can achieve DataGridViewMaskedTextColumn or what should I do resolve this issue.</p>