Hi,
I have a controltemplate on a column.
Now i want to access the template while looping my rows so i can get the selected values from my comboboxes (per row).
How can i do this?
Regards
I have a controltemplate on a column.
<ControlTemplate x:Key="ComboBoxColumnTemplateReportService" TargetType="{x:Type Telerik:GridViewCell}"> |
<StackPanel Orientation="Horizontal"> |
<ComboBox Width="150" Height="Auto" VerticalAlignment="Center" Margin="0,0,0,0" x:Name="dtcReportService" DataContext="{StaticResource objectDataProviderReportServices}" ItemsSource="{Binding}" DisplayMemberPath="Name" /> |
<ComboBox Width="150" Height="Auto" VerticalAlignment="Center" Margin="8,0,0,0" x:Name="dtcPrinter" DataContext="{Binding Path=SelectedItem.Printers, ElementName=dtcReportService, Mode=Default}" ItemsSource="{Binding}" DisplayMemberPath="Name" /> |
<ComboBox Width="150" Height="Auto" VerticalAlignment="Center" Margin="8,0,0,0" x:Name="dtcPrinterTray" DataContext="{Binding Path=SelectedItem.PrinterTrays, ElementName=dtcPrinter, Mode=Default}" ItemsSource="{Binding}" DisplayMemberPath="Description" /> |
</StackPanel> |
</ControlTemplate> |
Now i want to access the template while looping my rows so i can get the selected values from my comboboxes (per row).
How can i do this?
Regards