Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WPF Toolkit Datagrid - Custom Tabbing

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?

like image 848
Jason Irwin Avatar asked May 13 '09 16:05

Jason Irwin


1 Answers

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>
like image 170
Bermo Avatar answered Oct 23 '22 06:10

Bermo