Moving the VirtualTreeView Editor to the second column

I have a VirtualTreeView with 3 columns (column headers are invisible if that matters).

When I press F2 (the default key to start the editor) to edit the node, it edits the node in column 0. How can I switch it to edit the node in column 1 instead?

Something like this code, but for key F2:

VST.EditNode(VST.GetFirstSelected(), 1);

+3
source share
1 answer

You need to set toExtendedFocusto TreeOptions.SelectionOptionsto focus the column, and then go into edit mode with F2 or click the selected cell again.

If you want to navigate using the keyboard, you also need to set toGridExtensionsto TreeOptions.MiscOptions.

, OnEditing Allowed False , .

coAllowFocus Options , (, , ).

P.S. coEditable TVTColumnOption VTV.

+5

All Articles