DataGridViewComboBoxColumn
Wisej.Web.DataGridViewComboBoxColumn
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.0.0.0)
Represents a DataGridView column that contains a collection of DataGridViewComboBoxCell cells.
public class DataGridViewComboBoxColumn : DataGridViewColumnPublic Class DataGridViewComboBoxColumn
Inherits DataGridViewColumnConstructors
DataGridViewComboBoxColumn()
Initializes a new instance of the DataGridViewComboBoxColumn class to the default state.
DataGridViewComboBoxColumn(cellTemplate)
Initializes a new instance of the DataGridViewComboBoxColumn class to the default state.
Properties
AutoCompleteMode
AutoCompleteMode: Returns or sets how automatic completion works for the DataGridViewComboBoxColumn. (Default: None)
CellTemplate
DataGridViewCell: Returns or sets the template used to model cell appearance.
Throws:
InvalidOperationException The type is null.
InvalidCastException The set type is not compatible with type DataGridViewComboBoxCell.
CharacterCasing
CharacterCasing: Returns or sets whether the cell editor modifies the case of characters as they are typed. (Default: Normal)
DataSource
Object: Returns or sets the data source that populates the selections for the combo boxes. (Default: null)
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: "")
DropDownStyle
ComboBoxStyle: Returns or sets the drop down style of the combo box. (Default: DropDown)
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: "")
IncrementalSelection
Boolean: Returns or sets whether items are selected incrementally as the user types within a timeout of 1 second. (Default: True)
Items
ObjectCollection: Returns the collection of the items contained in this DataGridViewComboBoxColumn.
Throws:
InvalidOperationException The value of the CellTemplate property is null.
LazyLoading
Boolean: Enables or disables lazy loading mode for the ComboBox cell editor control. (Default: False)
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)
Throws:
InvalidOperationException The value of the CellTemplate property is null.
Sorted
Boolean: Returns or sets if the items in the combo box editor are automatically sorted. (Default: False)
Throws:
ArgumentException An attempt was made to sort a cell that is attached to a data source.
Tools
ComponentToolCollection: Returns the instance of ComponentToolCollection associated with this control.
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: "")
ValueType
Type: Returns or sets the data type of the values in the column's cells.
VirtualScroll
Boolean: Enables or disables virtual scrolling mode for the ComboBox cell editor control. (Default: False)
Watermark
String: Returns or sets the text to show when the textbox is empty. (Default: null)
Methods
OnDataGridViewChanged()
Called when the element is associated with a different DataGridView.
Implements
Provides access to the UserData and Tag properties associated to the component implementing this interface.
All wisej components implement this interface.
Allows an object to serialize itself.
Last updated
Was this helpful?

