Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
105
How to traverse the xamdatagrid usign the keyboard tabbing and how to set the focus to the controls inside the cellvalue presenter
posted

Hi,

I am trying to implement the Xamdatagrid with checkbox i used the follwoing template to display the checkbox .But one problem is i am not able to trave the grid using the keyboard.Means i am not able to select the checkbox using the keyboard.Is ther any way to set a focus to the checkbox?

 <Style TargetType="{x:Type igDP:CellValuePresenter}" x:Key="customCheckEditor">

<Setter Property="Template">

<Setter.Value>

<ControlTemplate TargetType="{x:Type igDP:CellValuePresenter}">

<CheckBox HorizontalAlignment="Center" Name="chk1" Unchecked="UnCheckedGrid" Checked="CheckedGrid" Background="Red" FocusManager.IsFocusScope="True"

Tag="{Binding Path=DataItem.Name }" PreviewKeyDown="pkey" IsEnabled="{Binding Path=DataItem.Status , Converter={StaticResource checkConverter},ConverterParameter=check}"

IsChecked="{Binding Path=DataItem.Status , Converter={StaticResource checkConverter1},Mode=TwoWay}" >

 

 

</CheckBox>

</ControlTemplate>

 

 

</Setter.Value>

</Setter>

 

</Style>