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
1890
Active Cell in XamDatagrid
posted

Is there a way when I press enter in the Xamdatagrid to move to the cell below and begin edit mode? I tried the following below but I have to press Enter twice for it to work and I wont to only press enter once.

        private void AwrdsDataGrid_KeyDown(object sender, System.Windows.Input.KeyEventArgs e)
        {
            if (Keyboard.IsKeyDown(Key.Enter))
            {
                this.CoreItemDatagrid.ExecuteCommand(DataPresenterCommands.CellBelow);
                this.CoreItemDatagrid.ExecuteCommand(DataPresenterCommands.StartEditMode);
            }
        }