Returns or sets a value that determines whether a column's header can respond to
user-generated events.
Type | Description | |||
Boolean | A boolean expression that determines whether a column's header can respond to user-generated events. |
If the Enabled property is False, then all cells of the column are disabled, no matter if the CellEnabled property is true. Use the Enabled property to enable or disable a column. If a cell of radio or check type is disabled, then the cell's state cannot be changed. A disabled column looks grayed. If the column is disabled the associated edit control ( if it is exist ) in the control's label is disabled too. Use the Style property to specify the style of the control.
The following VB sample disables the first column:
ComboBox1.Columns(0).Enabled = False
The following C++ sample disables the first column:
m_combobox.GetColumns().GetItem(COleVariant(long(0))).SetEnabled( FALSE );
The following VB.NET sample disables the first column:
With AxComboBox1.Columns(0) .Enabled = False End With
The following C# sample disables the first column:
axComboBox1.Columns[0].Enabled = false;
The following VFP sample disables the first column:
with thisform.ComboBox1.Columns(0) .Enabled = .f. endwith