HeaderPane
Main
Hide
Share Link
Print

EditControl Field, EditSetupEventArgs Class

Defines the control used for cell editing. This value can be modified by the EditSetup event handler.

Class: EditSetupEventArgs
Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET

Syntax

public Control EditControl;
Public EditControl As Control

Comments

Defines the control used for cell editing. This value can be modified by the EditSetup event handler.

Examples

C# View entire sample code

            // make it visible and enable it
            textBox1.Enabled = true;
            textBox1.Visible = true;

            // off we go!
            textBox1.BringToFront();
            textBox1.Focus();
            e.EditControl = textBox1;
        }

        private void sftTree1_EditValidate(object sender, Softelvdm.SftTreeNET.EditValidateEventArgs e) {
            DumpValues("EditValidate", e);
        }

        private void sftTree1_Enter(object sender, EventArgs e) {
            DumpValues("Enter", e);

VB.NET View entire sample code

    ' make it visible and enable it
    TextBox1.Enabled = True
    TextBox1.Visible = True

    ' off we go!
    TextBox1.BringToFront()
    TextBox1.Focus()
    e.EditControl = TextBox1
End Sub

Private Sub SftTree1_EditValidate(ByVal sender As System.Object, ByVal e As Softelvdm.SftTreeNET.EditValidateEventArgs) Handles SftTree1.EditValidate
    DumpValues("EditValidate", e)
End Sub

Private Sub SftTree1_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SftTree1.Enter
    DumpValues("Enter", e)

See Also EditSetupEventArgs Class | Classes | SftTree/NET 3.0