DataGridViewComboBoxCell
Wisej.Web.DataGridViewComboBoxCell
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.0.0.0)
Displays an editable ComboBox control in a DataGridViewCell cell when in edit mode.
public class DataGridViewComboBoxCell : DataGridViewCell
Constructors
DataGridViewComboBoxCell()

Properties
AutoCompleteMode

AutoCompleteMode: Returns or sets how automatic completion works for the DataGridViewComboBoxColumn.
CharacterCasing

CharacterCasing: Returns or sets whether the cell editor modifies the case of characters as they are typed.
DataSource

Object: Returns or sets the data source that contains the possible selections shown in the drop-down list.
Throws:
ArgumentException The specified value when setting this property is not null and is not of type IList nor IListSource.
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.
Throws:
ArgumentException The DataSource property is not null and the specified value when setting this property is not null or Empty and does not name a valid property or column in the data source.
DropDownStyle

ComboBoxStyle: Returns or sets the style of the combo box.
EditType

Type: Returns the type of the cell's hosted editing control.
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.
Throws:
ArgumentException The DataSource property is not null and the specified value when setting this property is not null or Empty and does not name a valid property or column in the data source.
IncrementalSelection

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

ObjectCollection: Returns the collection of the items contained in this DataGridViewComboBoxCell.
LazyLoading

Boolean: Enables or disables lazy loading mode for the ComboBox cell editor control.
MaxInputLength

Int32: Returns or sets the maximum number of characters that can be entered into the editable part of the combo box control.
Throws:
ArgumentOutOfRangeException The value is less than 0.
Sorted

Boolean: Returns or sets if the items in the combo box editor are automatically sorted.
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 cell.
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.
Throws:
ArgumentException The DataSource property is not null and the specified value when setting this property is not null or Empty and does not name a valid property or column in the data source.
ValueType

Type: Returns or sets the data type of the values in the cell.
VirtualScroll

Boolean: Enables or disables virtual scrolling mode for the ComboBox cell editor control.
Watermark

String: Returns or sets the text to show when the control is empty.
Methods
ParseFormattedValue(value, cellStyle, formattedTypeConverter, valueTypeConverter)

Converts a value to the actual cell value.
formattedTypeConverter
A TypeConverter for the display value type, or null to use the default converter.
valueTypeConverter
A TypeConverter for the cell value type, or null to use the default converter.
Returns: Object. The cell value.
Throws:
ArgumentNullException cellStyle is null.
FormatException The FormattedValueType property value is null or the ValueType property value is null or value cannot be converted.
ArgumentException value is null or the type of value does not match the type indicated by the FormattedValueType property.
Events
ItemsCollectionChanged

EventHandler Fired when the collection changes.
Last updated
Was this helpful?