| Visual Basic (Declaration) | |
|---|---|
Public Property AllowCellEdit As AllowCellEdit | |
| C# | |
|---|---|
public AllowCellEdit AllowCellEdit {get; set;} | |
The AllowCellEdit property is exposed by each of the column-related objects (UltraTreeNodeColumn, UltraTreeColumnSet, and UltraTreeColumnSettings), and the UltraTreeNodeCell object exposes an UltraTreeNodeCell.AllowEdit property, which is named differently but functionally identical. The AllowCellEdit of the UltraTreeNode object is less specific than the AllowEdit property of the cell, but more specific than that of the column-related objects; for example, setting the property on the node supercedes the setting at all other levels except the cell.
Note: When the AllowCellEdit property is set to 'Disabled', cells are disabled, but the node itself is not; behavior is different in this case than when the node's UltraTreeNode.Enabled property is set to false.
Cells can be disabled by setting the AllowCellEdit property to 'Disabled'.
The end user can be prevented from changing a cell's contents, while still being allowed to copy the cell's contents, by setting the AllowCellEdit property to 'ReadOnly'.
The AllowCellEdit property does not, by itself, determine the behavior exhibited when a cell is clicked with the mouse; the Override.CellClickAction property also determines whether a cell can be activated and/or edited when it is clicked with the mouse.
| Visual Basic | Copy Code |
|---|---|
Imports Infragistics.Win | |
| C# | Copy Code |
|---|---|
using Infragistics.Win; | |
