This is a migrated thread and some comments may be shown as answers.

OnChildGridLoaded happens few times

1 Answer 5 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Orit
Top achievements
Rank 1
Orit asked on 09 Sep 2009, 05:17 AM
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

 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;  
                    }  
Thanks!
Orit

1 Answer, 1 is accepted

Sort by
0
Orit
Top achievements
Rank 1
answered on 09 Sep 2009, 05:31 AM
sorry
it was a mistake of me in another function...
Tags
GridView
Asked by
Orit
Top achievements
Rank 1
Answers by
Orit
Top achievements
Rank 1
Share this question
or