I have within a datagrid the following column. As you can see its a template column that when in display its a label and when in edition mode it becomes a drop down box. The problem I am having is that this specific drop down only contains digits (0,1,2,3) when the user wants to put that row in edition mode to edit that specific cell he has to click precisely on the number otherwise nothing happens. I would like the entire cell when clicked to trigger the edition mode.
How can I achieve this ?
<data:DataGridTemplateColumn Header="Retries" >
<data:DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<!--MouseLeftButtonUp="Label_MouseLeftButtonUp"-->
<sdk:Label Content="{Binding RetriesWrapper, Mode=OneWay,ValidatesOnDataErrors=True,NotifyOnValidationError=True}" />
</DataTemplate>
</data:DataGridTemplateColumn.CellTemplate>
<data:DataGridTemplateColumn.CellEditingTemplate>
<DataTemplate>
<ComboBox ItemsSource="{Binding Source={StaticResource RetriesListItems}, Path=RetriesListItems}"
SelectedValue="{Binding RetriesWrapper, Mode=TwoWay, ValidatesOnDataErrors=True,NotifyOnValidationError=True}">
</ComboBox>
</DataTemplate>
</data:DataGridTemplateColumn.CellEditingTemplate>
</data:DataGridTemplateColumn>