or
this
.MasterTableDefinition_PreviewDataRowCreate
but how or where can I add this method to my childGrid
Thanks!
Orit


| private void OnChildGridLoaded(object sender, RoutedEventArgs e) |
| { |
| try |
| { |
| if (((ComboBoxValues.ComboValues)cmbActivityType.SelectedValue).Id != 0) |
| { |
| dsAcoount.Tables["Budget"].DefaultView.RowFilter = "ActivityTypeID=" + ((ComboBoxValues.ComboValues)cmbActivityType.SelectedValue).Id; |
| ((RadGridView)sender).ItemsSource = null; |
| ((RadGridView)sender).ItemsSource = dsAcoount.Tables["Budget"].DefaultView; |
| } |
| } |
if (el.VisualHit != null && (el.VisualHit as UIElement).IsHitTestVisible)
System.Windows.Media.DrawingVisual doesn't inherit from UIElement, so the as returns null and we get an exception.
