HeaderPane
Main
Hide
Share Link
Print

Cell Field, EditEndedEventArgs Class

The cell to be edited.

Class: EditEndedEventArgs
Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET

Syntax

public readonly CellClass Cell;
Public ReadOnly Cell As CellClass

Comments

The cell to be edited.

Examples

C# View entire sample code

            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;
        }

VB.NET View entire sample code

    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 Sub

See Also EditEndedEventArgs Class | Classes | SftTree/NET 3.0