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
Edits this cell.
Class: CellClass
Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET
public bool Edit();
Public Function Edit() As Boolean
True if the cell editing has started for this cell, otherwise False.
Edits this cell.
Only cells in the item area can be edited. Cells in the header area, footer area or row headers cannot be edited.
Cell editing is initiated by the subsequent EditSetup event which is used to position and initialize the control used for cell editing.
The Edit method cannot edit a cell whose CellClass.EditIgnore or ItemClass.EditIgnore properties have marked the cell as non-editable or if the EditAllowed event indicates that the cell cannot be reached during cell editing.
SftTree.EndEdit returns False, if a cell is already being edited and the EditValidate event indicated that the contents are invalid, or if the EditAllowed event for this cell indicated that editing is not allowed, or if the EditSetup event did not return a control in the EditControl field of the event's EditSetupEventArgs instance.
Debug.Write("** EditEnded"); DumpValues(e); } private void sftTree1_ItemClick(object sender, Softelvdm.SftTreeNET.ItemClickEventArgs e) { Debug.Write("** ItemClick"); DumpValues(e); if (e.Area == Softelvdm.SftTreeNET.ItemClickAreaEnum.CellSel) e.Cell.Edit(); // Start cell editing } // Handle all the cell navigation for the text box here private void textBox1_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Up) { sftTree1.EditNavigate(EditNavigateEnum.Up);
Debug.Write("** EditEnded") DumpValues(e) End Sub Private Sub sftTree1_ItemClick(ByVal sender As Object, ByVal e As Softelvdm.SftTreeNET.ItemClickEventArgs) Handles sftTree1.ItemClick Debug.Write("** ItemClick") DumpValues(e) If e.Area = ItemClickAreaEnum.CellSel Then e.Cell.Edit() ' Start cell editing End If End Sub Private Sub textBox1_KeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles textBox1.KeyDown If e.KeyCode = Keys.Up Then sftTree1.EditNavigate(EditNavigateEnum.Up) e.Handled = True
See Also CellClass Class | Classes | SftTree/NET 2.0