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
490
Key Mappings: select/unselect
posted

Hello,

  Is there a key mapping configuration that will let me select the current row, move down to the cell beneath the current one, and select that row (so the row is selected and the active cell is the BelowCell)?

  I've been trying with something along these lines:

new GridKeyActionMapping( Keys.Down, UltraGridAction.ToggleRowSel,  
  UltraGridState.IsDroppedDown, 0, 0, 0 ) );
new GridKeyActionMapping( Keys.Down, UltraGridAction.BelowCell,
  UltraGridState.IsDroppedDown, 0, 0, 0 ) );
new GridKeyActionMapping( Keys.Down, UltraGridAction.ToggleRowSel,
  UltraGridState.IsDroppedDown, 0, 0, 0 ) );

  But while it moves down - the new row isn't selected and the previous row is not unselected.  Any advice?

Thanks

Parents
  • 469350
    Suggested Answer
    Offline posted

    No, there is no way to do this. This has nothing to do with the KeyActionMappings specifically. You cannot select a row in the grid and also have a cell in edit mode. These two conditions are mutually exclusive. Once a  cell enters edit mode, the row selection is cleared. This is pretty much a standard of Windows applications.

     

Reply Children