Provides data for the EditClickOutside event.
Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET
Inheritance
public class EditClickOutsideEventArgs : System.EventArgs;
Public Class EditClickOutsideEventArgs
Inherits System.EventArgsThis class cannot be instantiated.
![]() | Cell | The cell being edited. |
![]() | ClassName | The window class name of the window receiving the mouse click. |
![]() | EditControl | The control used for cell editing. |
![]() ![]() ![]() | Empty | Provides a value to use with events that do not have event data. |
![]() | EndEditing | Defines whether cell editing ends. This value can be modified by the EditClickOutside event handler. |
![]() | Item | The item being edited. |
![]() | m | The message that could potentially end cell editing. |
![]() ![]() | 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. |
}
private void sftTree1_EditAllowed(object sender, Softelvdm.SftTreeNET.EditAllowedEventArgs e) {
DumpValues("EditAllowed", e);
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.Cell.ColumnIndex = 2 Then ' only edit cells in column 2
e.Allowed = True
Else
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 ThenSee Also Classes | SftTree/NET 3.0