The cell to be edited.
Class: EditEndedEventArgs
Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET
public readonly CellClass Cell;
Public ReadOnly Cell As CellClassThe cell to be edited.
DumpValues("EditClickOutside", e);
}
private void sftTree1_EditEnded(object sender, Softelvdm.SftTreeNET.EditEndedEventArgs e) {
DumpValues("EditEnded", e);
// save the new cell text if necessary
if (e.SaveValue)
e.Cell.Text = textBox1.Text;
// hide the text box and make the form the control's parent
textBox1.Visible = false;
textBox1.Enabled = false;
textBox1.Parent = sftTree1.Parent;
}
DumpValues("EditClickOutside", e)
End Sub
Private Sub SftTree1_EditEnded(ByVal sender As System.Object, ByVal e As Softelvdm.SftTreeNET.EditEndedEventArgs) Handles SftTree1.EditEnded
DumpValues("EditEnded", e)
' save the new cell text if necessary
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
TextBox1.Enabled = False
TextBox1.Parent = SftTree1.Parent
End SubSee Also EditEndedEventArgs Class | Classes | SftTree/NET 3.0