Skip to main content
Version: 4.1

DataGridViewComboBoxColumn

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.1.0.0)

Represents a DataGridView column that contains a collection of DataGridViewComboBoxCell cells.

public class DataGridViewComboBoxColumn : DataGridViewColumn

Constructors​

Instance member DataGridViewComboBoxColumn()​

Initializes a new instance of the DataGridViewComboBoxColumn class to the default state.

Instance member DataGridViewComboBoxColumn(cellTemplate)​

Initializes a new instance of the DataGridViewComboBoxColumn class to the default state.

NameTypeDescription
cellTemplateDataGridViewComboBoxCellAn existing DataGridViewButtonCell to use as a template.

Properties​

Instance member AutoCompleteMode​

AutoCompleteMode: Returns or sets how automatic completion works for the DataGridViewComboBoxColumn. (Default: None)

Value: One of the values of AutoCompleteMode. The default is None.

Instance member CellTemplate​

DataGridViewCell: Returns or sets the template used to model cell appearance.

Value: A DataGridViewCell that all other cells in the column are modeled after.

Throws:

Instance member CharacterCasing​

CharacterCasing: Returns or sets whether the cell editor modifies the case of characters as they are typed. (Default: Normal)

Value: One of the CharacterCasing enumeration values. The default is CharacterCasing.Normal.

Instance member DataSource​

Object: Returns or sets the data source that populates the selections for the combo boxes. (Default: null)

Value: An object that represents a data source. The default is null.

Instance member DisplayMember​

String: Returns or sets the name of the property or column from which to retrieve the text to display in the combo box cell. (Default: "")

Value: A String that specifies the name of a property or column in the data source specified in the DataSource property. The default is Empty.

ComboBoxStyle: Returns or sets the drop down style of the combo box. (Default: DropDown)

Value: One of the ComboBoxStyle values. The default is DropDown.

Instance member IconMember​

String: Returns or sets the name of the property or column from which to get the icon to use in the drop-down list. (Default: "")

Value: A String that specifies the name of a property or column to use in the DataSource property. The default is Empty.

Instance member IncrementalSelection​

Boolean: Returns or sets whether items are selected incrementally as the user types within a timeout of 1 second. (Default: True)

Instance member Items​

ObjectCollection: Returns the collection of the items contained in this DataGridViewComboBoxColumn.

Value: A ObjectCollection containing the items in the DataGridViewComboBoxColumn.

Throws:

Instance member LazyLoading​

Boolean: Enables or disables lazy loading mode for the ComboBox cell editor control. (Default: False)

Instance member MaxInputLength​

Int32: Returns or sets the maximum number of characters that can be entered into the editable part of the combo box control. (Default: 0)

Value: The maximum number of characters that can be entered into the text box; the default value is 0 (unlimited).

Throws:

Instance member Sorted​

Boolean: Returns or sets if the items in the combo box editor are automatically sorted. (Default: False)

Value: true if the combo box is sorted; otherwise, false. The default is false.

Throws:

  • ArgumentException An attempt was made to sort a cell that is attached to a data source.

Instance member Tools​

ComponentToolCollection: Returns the instance of ComponentToolCollection associated with this control.

Instance member ValueMember​

String: Returns or sets the name of the property or column from which to get the value that correspond to the selections in the drop-down list. (Default: "")

Value: A String that specifies the name of a property or column to use in the DataSource property. The default is Empty.

Instance member ValueType​

Type: Returns or sets the data type of the values in the column's cells.

Value: A Type representing the data type of the value in the column's cells.

Instance member VirtualScroll​

Boolean: Enables or disables virtual scrolling mode for the ComboBox cell editor control. (Default: False)

Instance member Watermark​

String: Returns or sets the text to show when the textbox is empty. (Default: null)

Methods​

Protected member OnDataGridViewChanged()​

Called when the element is associated with a different DataGridView.

Implements​

NameDescription
IUserDataProvides access to the UserData and Tag properties associated to the component implementing this interface.
IWisejComponentAll wisej components implement this interface.
IWisejSerializableAllows an object to serialize itself.