Provides data for the EditEnded event.
Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET
Inheritance
public class EditEndedEventArgs : System.EventArgs;
Public Class EditEndedEventArgs
Inherits System.EventArgsThis class cannot be instantiated.
![]() | Cell | The cell to be edited. |
![]() | EditControl | The control used for cell editing. |
![]() ![]() ![]() | Empty | Provides a value to use with events that do not have event data. |
![]() | Item | The item whose cell is to be edited. |
![]() | SaveValue | Defines whether the new cell contents must be transferred from the control used for cell editing to the tree control's cell. |
![]() ![]() | Equals | Determines whether the specified object is equal to the current object. |
![]() ![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. |
![]() ![]() | GetHashCode | Serves as the default hash function. |
![]() ![]() | GetType | Gets the Type of the current instance. |
![]() ![]() | MemberwiseClone | Creates a shallow copy of the current Object. |
![]() ![]() ![]() | ReferenceEquals | Determines whether the specified Object instances are the same instance. |
![]() ![]() | ToString | Returns a string that represents the current object. |
e.Allowed = (e.Cell.ColumnIndex == 2); // only edit cells in column 2
}
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;
e.Allowed = False
End If
End Sub
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
See Also Classes | SftTree/NET 3.0