I am trying to use the Selected index of one RadComboBox help build the query to populate another RadComboBox, they are both in the <EditItemTemplate>.
I get an Object reference not set to instance of an object when I run this code just adding a RadComboBoxItem without even building the query.
Protected Sub ItemType_SelectedIndexChanged(ByVal o As Object, ByVal e As RadComboBoxSelectedIndexChangedEventArgs)
Dim DDL As RadComboBox = TryCast(RadGrid1.FindControl("FlatFileType").Controls(0), RadComboBox)
Dim RadComboBoxItem1 As New RadComboBoxItem("First Item")
DDL.Items.Add(RadComboBoxItem1)
End Sub
I am not sure how to correctly access the second radcombobox to be able to populate it.
Any help is greatly appreciated.