title: OnCelldouble click in my gridview
body: <p>I need to double click the cell in my gridview and whenever I click it, it should open a new window to edit the value. However, on my codes, it return to null even if i have a value. I think  the event handler for my gridview is incorrect. Heres is the message "Object reference not set to an instance of an object."</p>
  
  <p>Here's is my code..</p>
  
  <p>Constructor: </p>
  
  <pre><code>grdProducts.AddHandler(GridViewCellBase.CellDoubleClickEvent, 
                         new EventHandler&lt;RadRoutedEventArgs&gt;(OnCellDoubleClick), 
                         true);
  </code></pre>
  
  <p>Click Events: </p>
  
  <pre><code>private void OnCellDoubleClick(object sender, RadRoutedEventArgs e)
  {
      Product product = (sender as Telerik.Windows.Controls.GridViewColumn).DataContext as Product;
      ShowProductWindow(product);
  
      //MessageBox.Show("test");
  }
  </code></pre>
  
  <p>Help me to figure it out.</p>