In my OnChildGridLoaded
I need to do two things
1. filter the data of the child grid
2. filter the items in the ComboBoxColumn
right now I try to do only the second thing
the following happens:
I fill the ComboBoxColumn
the comboBox is filled with the correct values
but when I select value in the comboBox
I fly
the error is
Unable to cast object of type 'System.Data.DataRow' to type 'System.Data.DataRowView
I need to do two things
1. filter the data of the child grid
2. filter the items in the ComboBoxColumn
right now I try to do only the second thing
the following happens:
I fill the ComboBoxColumn
((GridViewComboBoxColumn)((RadGridView)sender).Columns["ActivityTypeID"]).ItemsSource = ComboBoxValues.GetComboValues(dtActivityType.Select("ID < 2000")); |
but when I select value in the comboBox
I fly
the error is
Unable to cast object of type 'System.Data.DataRow' to type 'System.Data.DataRowView