title: How can i get the value of a datagrid cell on the dataGrid1_BeginningEdit Event?
body: <p>I'm trying to check if the value of a datagrid cell is null when i use the dataGrid1_BeginningEdit Event to stop the event.</p>
  
  <p>code is as follows, i can use '(((TextBox)e.EditingElement).Text' when im doing 'dataGrid2_CellEditEnding(object sender, DataGridCellEditEndingEventArgs e)' but not for the below.</p>
  
  <pre><code>    private void dataGrid2_BeginningEdit(object sender, DataGridBeginningEditEventArgs e)
      {
          int column = dataGrid2.CurrentCell.Column.DisplayIndex;
          int row = dataGrid2.SelectedIndex;
  
          if (((TextBox)e.EditingElement).Text == null)
              return;
  </code></pre>
  
  <p>Many thanks</p>