hello, i am using gridview with mvvm pattern and binding
i use columns like this to build my grid:
the problem is i canĀ“t set tab index to my controls (textboxes), i want to press tab and move to my textbox, how can i do so?
when i press tab i get focus in the cell not in my textbox
i use columns like this to build my grid:
<telerik:GridViewColumn IsSortable="False" HeaderText="Amount"> |
<telerik:GridViewColumn.CellStyle> |
<Style TargetType="telerik:GridViewCell"> |
<Setter Property="Template"> |
<Setter.Value> |
<ControlTemplate TargetType="telerik:GridViewCell"> |
<StackPanel> |
<TextBox PreviewKeyDown="TextBox_PreviewKeyDown" HorizontalAlignment="Stretch" |
Margin="3" VerticalAlignment="Center" |
Text="{Binding Path=Amount, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"></TextBox> |
</StackPanel> |
</ControlTemplate> |
</Setter.Value> |
</Setter> |
</Style> |
</telerik:GridViewColumn.CellStyle> |
</telerik:GridViewColumn> |
the problem is i canĀ“t set tab index to my controls (textboxes), i want to press tab and move to my textbox, how can i do so?
when i press tab i get focus in the cell not in my textbox