Defines whether the new cell contents must be transferred from the control used for cell editing to the tree control's cell.
Class: EditEndedEventArgs
Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET
public readonly bool SaveValue;
Public ReadOnly SaveValue As BooleanDefines whether the new cell contents must be transferred from the control used for cell editing to the tree control's cell.
private void sftTree1_EditClickOutside(object sender, Softelvdm.SftTreeNET.EditClickOutsideEventArgs e) {
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;
}Private Sub SftTree1_EditClickOutside(ByVal sender As System.Object, ByVal e As Softelvdm.SftTreeNET.EditClickOutsideEventArgs) Handles SftTree1.EditClickOutside 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
See Also EditEndedEventArgs Class | Classes | SftTree/NET 3.0