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
Occurs when cell editing is about to end and the control used for cell editing can be destroyed.
Class: SftTree
Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET
public event EditEndedEventHandler EditEnded;
Public Event EditEnded As EditEndedEventHandler
Occurs when cell editing is about to end and the control used for cell editing can be destroyed.
This event occurs every time cell editing for one cell is about to end. This event should only be used to save input data in the tree control and to hide and disable or destroy the control used for cell editing. This event should not take any other action or update the tree control in any other way.
After the EditEnded event occurs, another cell could be edited automatically as the result of cell navigation. The EditValidate event is used to validate the contents of the cell being edited. The EditValidate event precedes the EditEnded event.
} } else if (e.EditControl is ComboBox) { if (comboBox1.Text == "") { // you MUST select something e.Valid = false; MessageBox.Show("Cell text can't be empty in this example."); } } } private void sftTree1_EditEnded(object sender, Softelvdm.SftTreeNET.EditEndedEventArgs e) { if (e.EditControl is TextBox) { // save the new cell text if neccessary if (e.SaveValue) e.Cell.Text = textBox1.Text; // hide the text box and make the form the control's parent
ElseIf TypeOf e.EditControl Is ComboBox Then If comboBox1.Text = "" Then ' you MUST select something e.Valid = False MessageBox.Show("Cell text can't be empty in this example.") End If End If End Sub Private Sub sftTree1_EditEnded(ByVal sender As Object, ByVal e As Softelvdm.SftTreeNET.EditEndedEventArgs) Handles sftTree1.EditEnded If TypeOf e.EditControl Is TextBox Then ' save the new cell text if neccessary If (e.SaveValue) Then e.Cell.Text = textBox1.Text End If ' hide the text box and make the form the control's parent textBox1.Visible = False
See Also SftTree Class | Classes | SftTree/NET 2.0