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
1034
Moving the row selector to the items insead of the Group
posted

Hello,

When I move between rows with the key board arrow it moves between the group name, but I want to move between the children.

Parents
  • 469350
    Offline posted

    Hi,

    To get to a child row, you have to use the Right arrow, instead of down. 

    If you want the down arrow to go to the child rows, you would either have to update the KeyActionMappings on the grid, or handle the BeforePerformAction event. The event is probably easier. Something like this:


            private void ultraGrid1_BeforePerformAction(object sender, BeforeUltraGridPerformActionEventArgs e)
            {
                UltraGrid grid = (UltraGrid)sender;

                switch (e.UltraGridAction)
                {
                    case UltraGridAction.BelowRow:           
                        e.Cancel = true;
                        grid.PerformAction(UltraGridAction.NextRowByTab, false, false);
                        break;
                    case UltraGridAction.Above:
                        e.Cancel = true;
                        grid.PerformAction(UltraGridAction.PrevRowByTab, false, false);
                        break;
                }           
            }

Reply Children