I have a WPF Toolkit DataGrid with 3 columns. Only the third column allows data entry - the first two are static (Text descriptions). Is it possible to control tabbing and navigation such that the tab and up-down-left-right buttons will ignore the first two columns and operate within the confines of the third?
You can disable tabbing on the first two columns with the IsTabStop
property. Unfortunately this isn't as easy to access as some of the other WPF controls so you have to set it via the CellStyle
:
</dg:DataGridTextColumn>
<dg:DataGridTextColumn.CellStyle>
<Style TargetType="{x:Type dg:DataGridCell}">
<Setter Property="IsTabStop" Value="False" />
</Style>
</dg:DataGridTextColumn.CellStyle>
</dg:DataGridTextColumn>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With