SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftPrintPreview/DLL 2.0 - Print Preview Control (discontinued)
SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftDirectory 3.5 - File/Folder Control (discontinued)
SftMask/OCX 7.0 - Masked Edit Control
SftOptions 1.0 - Registry/INI Control (discontinued)
SftPrintPreview/OCX 1.0 - Print Preview Control (discontinued)
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTabs/NET 6.0 - Tab Control (discontinued)
SftTree/NET 2.0 - Tree Control
Returns the column's zero-based index in the column collection.
Class: CellClass
Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET
public int ColumnIndex { get; }
Public ReadOnly Property ColumnIndex As Integer
A value that specifies the zero-based column index in the column collection.
Returns the column's zero-based index in the column collection.
The CallClass.OwningItem property can be used to determine the item to which this cell belongs.
if (e.Cell.ColumnIndex == 0) // Can't edit the first column
e.Allowed = false;
}
private void sftTree1_EditSetup(object sender, Softelvdm.SftTreeNET.EditSetupEventArgs e) {
Debug.Write("** EditSetup");
DumpValues(e);
if (e.Cell.ColumnIndex == 1) {
// We use a textbox for column 1 (remember, column 0 is not editable,
// because of the EditAllowed event
// set all textbox properties
textBox1.Parent = sftTree1; // make the tree control the parent window
textBox1.Text = e.Cell.Text;
int h = textBox1.Height;
sftTree1.Columns.MakeOptimal(0, False)
sftTree1.RecalcHorizontalExtent()
sftTree1.Initializing = False
End Sub
Private Sub sftTree1_EditAllowed(ByVal sender As Object, ByVal e As Softelvdm.SftTreeNET.EditAllowedEventArgs) Handles sftTree1.EditAllowed
Debug.Write("** EditAllowed")
DumpValues(e)
If e.Cell.ColumnIndex = 0 Then ' Can't edit the first column
e.Allowed = False
End If
End Sub
Private Sub sftTree1_EditSetup(ByVal sender As Object, ByVal e As Softelvdm.SftTreeNET.EditSetupEventArgs) Handles sftTree1.EditSetup
Debug.Write("** EditSetup")
DumpValues(e)See Also CellClass Class | Classes | SftTree/NET 2.0
