Provides data for the EditAllowed event.
Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET
Inheritance
public class EditAllowedEventArgs : System.EventArgs;
Public Class EditAllowedEventArgs
Inherits System.EventArgsThis class cannot be instantiated.
![]() | Allowed | Defines whether the cell can be edited. This value can be modified by the EditAllowed event handler. |
![]() | Cell | The cell to be edited. |
![]() ![]() ![]() | Empty | Provides a value to use with events that do not have event data. |
![]() | Item | The item whose cell is to be edited. |
![]() ![]() | 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_DragOver(object sender, DragEventArgs e) {
DumpValues("DragOver", e);
e.Effect = DragDropEffects.Copy; // accept anything
}
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);
End Sub
Private Sub SftTree1_DragOver(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DragEventArgs) Handles SftTree1.DragOver
DumpValues("DragOver", e)
e.Effect = DragDropEffects.Copy ' accept anything
End Sub
Private Sub SftTree1_EditAllowed(ByVal sender As System.Object, ByVal e As Softelvdm.SftTreeNET.EditAllowedEventArgs) Handles SftTree1.EditAllowed
DumpValues("EditAllowed", e)
If e.Cell.ColumnIndex = 2 Then ' only edit cells in column 2
e.Allowed = True
Else
e.Allowed = False
End IfSee Also Classes | SftTree/NET 3.0