title: Datagridview cell accept double value only
body: <p>I've made it for integer value and by this code and it's work :</p>
  
  <pre><code> private void ItemsDataGridView_CellValidating(object sender, DataGridViewCellValidatingEventArgs e)
      {
  
          DataGridViewTextBoxCell cell =ItemsDataGridView[2, e.RowIndex] as DataGridViewTextBoxCell;
  
          if (cell != null)
          {
              if (e.ColumnIndex == 2)
              {
                  char[] chars = e.FormattedValue.ToString().ToCharArray();
  
                  foreach (char c in chars)
                  {
                      if (char.IsDigit(c) == false)
                      {
                          MessageBox.Show("You have to enter digits only");
  
                          e.Cancel = true;
                          break;
                      }
                  }
              }
  </code></pre>
  
  <p>i want to make another cell just accept double value to prevent user from enter two dots "." to avoid error </p>