SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftPrintPreview/DLL 2.0 - Print Preview Control (discontinued)
SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftDirectory 3.5 - File/Folder Control (discontinued)
SftMask/OCX 7.0 - Masked Edit Control
SftOptions 1.0 - Registry/INI Control (discontinued)
SftPrintPreview/OCX 1.0 - Print Preview Control (discontinued)
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTabs/NET 6.0 - Tab Control (discontinued)
SftTree/NET 2.0 - Tree Control
Ends cell editing.
Class: SftTree
Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET
public bool EndEdit( bool Validate );
Public Function EndEdit( ByVal Validate As Boolean ) As Boolean
Validate
Set to True to validate input data, False to skip input validation.
Returns True if cell editing has ended, False if it hasn't due to input validation (the application rejected the input data using the EditValidate event). If Validate is False, EndEdit will always return True.
Ends cell editing.
If Validate is True, the EditValidate event is generated to allow the application to process the input data. If Validate is False, the current data being edited is abandoned and the cell remains unchanged.
The EndEdit method doesn't need to be called under normal circumstances. If the user clicks the mouse button outside the cell being edited, the tree control automatically generates an EditValidate event. The EndEdit method can be used to end cell editing due to an external event, such as a timer event or other application specific events.
Cell editing can be started using the CellClass.Edit method.
e.Handled = true; } else if (e.KeyCode == Keys.Tab && (e.Modifiers & Keys.Shift) != 0) { // Shift+Tab sftTree1.EditNavigate(EditNavigateEnum.Left); e.Handled = true; } else if (e.KeyCode == Keys.Tab && (e.Modifiers & Keys.Shift) == 0) { // Tab sftTree1.EditNavigate(EditNavigateEnum.Right); e.Handled = true; } else if (e.KeyCode == Keys.Escape) { // ESC sftTree1.EndEdit(false); e.Handled = true; } else if (e.KeyCode == Keys.Return) { // Return sftTree1.EndEdit(true); e.Handled = true; } }
e.Handled = True ElseIf e.KeyCode = Keys.Tab And (e.Modifiers And Keys.Shift) <> 0 Then ' Shift+Tab sftTree1.EditNavigate(EditNavigateEnum.Left) e.Handled = True ElseIf e.KeyCode = Keys.Tab And (e.Modifiers And Keys.Shift) = 0 Then ' Tab sftTree1.EditNavigate(EditNavigateEnum.Right) e.Handled = True ElseIf e.KeyCode = Keys.Escape Then ' ESC sftTree1.EndEdit(False) e.Handled = True ElseIf e.KeyCode = Keys.Return Then ' Return sftTree1.EndEdit(True) e.Handled = True End If End Sub
See Also SftTree Class | Classes | SftTree/NET 2.0