In order to filter my child grid
I try to do the folowing
but now the OnChildGridLoaded
happens few times and I get the child grid few times
Thanks!
Orit
I try to do the folowing
but now the OnChildGridLoaded
happens few times and I get the child grid few times
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; |
} |
} |
Orit