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
473
setting focus to the control inside the data template
posted

I am using the xamDataGrid and edit template is assigned to one of the Field of the DataGrid  -

 

xmlns

 

:infra="http://infragistics.com/Editors"

 

 

 <Style x:Key="ComboStyle" TargetType="{x:Type infra:ValueEditor}">
    <Setter Property ="EditTemplate">
          <Setter.Value>
                  <ControlTemplate TargetType="{x:Type infra:ValueEditor}">
                        
<ComboBox Name="uxFacility"  Text="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Value, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged }">
                       
</ComboBox>
                  </
ControlTemplate>
          
</Setter.Value>
   
</Setter>
</Style>

This edit template gets assigned to the field at runtime. Now if I use the key board to traverse to the perticular cell (field). as per the template above the combobox gets displayed in the cell but the focus still remains on the cell. I want the focus to get shift to the combox the moment it gets displayed.

any clues?

Thanks in advance.

~Sachin