This project has moved. For the latest updates, please go here.

Click on NumericUpDown does not select a row in Datagrid

Aug 9, 2016 at 10:00 AM
Hello!

I'm using a NumericUpDown in a column of System.Windows.Comtrols.Datagrid.
Click on the control allows to edit the number in it but the DataGrid row is not highlighted.
Image

On the image above the row 2 was selected previously. After the Click on the control in the row 3 the selection is not changed, and the number can be edited.

If this behavior can be changed as for the standard controls, for ex. click on TextBox selects the row

Thanks in advance and best regards,
Pavel
Developer
Aug 9, 2016 at 3:36 PM
Hi,

Try with AutoSelectBehavior=Never and SelectAllOnGotFocus = False :
 <xctk:DoubleUpDown Value="{Binding Value}"
                                        AutoSelectBehavior="Never"
                                        SelectAllOnGotFocus="False"/>
In v3.2, the property SelectAllOnGotFocus will be removed.
Aug 10, 2016 at 7:42 AM
Thanks you!

SelectAllOnGotFocus="False" in Toolkit version 2.0 works for me.