This question is locked. New answers and comments are not allowed.
Hi:
I have two comboboxes in RadGridView columns. In the first, the user selects a customer. In the second, the user selects a project for that customer. So when the SelectionChanged event for the first combobox is fired, I do an async call to the database to get the projects for that customer. When I get the completed event for that database call, I need to set the ItemsSource for the second RadComboBox so it will list the projects. The problem is, I can't figure out how to find the second combobox. I know that gvGrid.CurrentCell contains the customer RadComboBox, but how do I find the 2nd RadComboBox in the next cell?
This is the XAML that defines the column:
Thanks,
Terry
I have two comboboxes in RadGridView columns. In the first, the user selects a customer. In the second, the user selects a project for that customer. So when the SelectionChanged event for the first combobox is fired, I do an async call to the database to get the projects for that customer. When I get the completed event for that database call, I need to set the ItemsSource for the second RadComboBox so it will list the projects. The problem is, I can't figure out how to find the second combobox. I know that gvGrid.CurrentCell contains the customer RadComboBox, but how do I find the 2nd RadComboBox in the next cell?
This is the XAML that defines the column:
| <radGridView:GridViewDataColumn Header="Project" DataMemberBinding="{Binding ProjectID, Mode=TwoWay}"> |
| <radGridView:GridViewDataColumn.CellTemplate> |
| <DataTemplate> |
| <TextBlock Text="{Binding ProjName}" /> |
| </DataTemplate> |
| </radGridView:GridViewDataColumn.CellTemplate> |
| <radGridView:GridViewDataColumn.CellEditTemplate> |
| <DataTemplate> |
| <radInput:RadComboBox x:Name="cboProject" DisplayMemberPath="{Binding ProjName}" /> |
| </DataTemplate> |
| </radGridView:GridViewDataColumn.CellEditTemplate> |
| </radGridView:GridViewDataColumn> |
Thanks,
Terry
