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
40
Navigating with TreeKeyActionMappings
posted

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!