Hello,
When an XamDataGrid cell in edit mode, may I press the Up or Down key to move the edit mode to the adjacent cell? If so, are there any examples?
Thanks.
Hello Soudip,
I have created a sample project for you where I implemented the same functionality for the XamGrid.
Hope this helps you.
Hi,
Do we have similar functionality for XamGrid as we are using that.
Thanks
Soudip
Now it's perfect, thank you very much!
I can suggest you handle the XamDataGrid’s EditModeStarted event and add the following handler for it:
private void xamDataGrid1_EditModeStarted(object sender, Infragistics.Windows.DataPresenter.Events.EditModeStartedEventArgs e) { Dispatcher.BeginInvoke(new Action(() => { (Utilities.GetDescendantFromType(e.Editor as DependencyObject, typeof(TextBox), true) as TextBox).SelectAll(); }), System.Windows.Threading.DispatcherPriority.Background, null); }
Works nearly perfect. But my problem No. 2 is not solved. The values don't get selected after getting focus.