Hello,
I have a UltraTree with ViewStyle "OutlookExpress" and several columns. I would like the tree view to behave in the following way. The focus should navigate from one cell to another in the same column using the up-/down-keys.
I tried the following code:
keyMapping2 = new TreeKeyActionMapping(Keys.Up, UltraTreeAction.AboveCell, 0, UltraTreeState.CellInEditMode, 0, 0);keyMapping2b = new TreeKeyActionMapping(Keys.Up,UltraTreeAction.EnterEditModeOnCell,UltraTreeState.IsCheckbox,0, 0, 0);ultraTreeTest.KeyActionMappings.Add(keyMapping2);ultraTreeTest.KeyActionMappings.Add(keyMapping2b);
...but it does not work. Nothing happens, when the active cell is in edit mode an I press the up-key.
Can anybody help me?
By the way: I use the key navigation in UltraGrids in the same way and this works fine!
Try these as your TreeKeyActionMappings:
TreeKeyActionMapping mapUp =
new TreeKeyActionMapping(Keys.Up, UltraTreeAction.PrevNode, 0, UltraTreeState.CellInEditMode, 0, 0);
TreeKeyActionMapping mapDown =
new TreeKeyActionMapping(Keys.Down, UltraTreeAction.NextNode, 0, UltraTreeState.CellInEditMode, 0, 0);
Hi Manfred,
The TreeKeyActionMapping I wrote does exactly that <cursor moves from the current cell to the next or the previous row with the down arrow or up arrow respectively>. I'm not sure where we are not connecting. To fully resolve this it would be best to contact our Developer Support here.