DataGridViewComboBoxCell
Wisej.Web.DataGridViewComboBoxCell
Last updated
Was this helpful?
Wisej.Web.DataGridViewComboBoxCell
Last updated
Was this helpful?
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.0.0.0)
Displays an editable ComboBox control in a DataGridViewCell cell when in edit mode.
Initializes a new instance of DataGridViewComboBoxCell.
AutoCompleteMode: Returns or sets how automatic completion works for the DataGridViewComboBoxColumn. (Default: None
)
CharacterCasing: Returns or sets whether the cell editor modifies the case of characters as they are typed. (Default: Normal
)
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.
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: ""
)
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.
ComboBoxStyle: Returns or sets the style of the combo box. (Default: DropDown
)
Type: Returns the type of the cell's hosted editing control.
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: ""
)
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.
Boolean: Returns or sets whether items are selected incrementally as the user types within a timeout of 1 second. (Default: True
)
ObjectCollection: Returns the collection of the items contained in this DataGridViewComboBoxCell.
Boolean: Enables or disables lazy loading mode for the ComboBox cell editor control. (Default: False
)
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:
ArgumentOutOfRangeException The value is less than 0.
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.
ComponentToolCollection: Returns the instance of ComponentToolCollection associated with this cell.
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: ""
)
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.
Type: Returns or sets the data type of the values in the cell.
Boolean: Enables or disables virtual scrolling mode for the ComboBox cell editor control. (Default: False
)
String: Returns or sets the text to show when the control is empty.
Returns the value of the cell formatted to be displayed on the client.
value
The value to be formatted.
valueTypeConverter
formattedTypeConverter
Returns: Object. The value of the cell or null if the cell does not belong to a DataGridView control.
Throws:
Exception Formatting failed and there is no handler for the DataError event of the DataGridView or the handler set the ThrowException property to true.
Returns the text representation of the specified item.
item
The object from which to get the text to display.
Returns: String.
Returns the value of the specified item.
item
The object from which to get the value to display.
Returns: Object.
Returns the value field for the specified item.
item
Returns: Object.
Called when the element is associated with a different DataGridView.
Fires the CollectionChanged event.
e
Converts a value to the actual cell value.
value
The display value of the cell.
cellStyle
formattedTypeConverter
valueTypeConverter
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.
EventHandler Fired when the collection changes.
Provides access to the UserData
and Tag
properties associated to the component implementing this interface.
cellStyle
The in for the cell.
A providing custom conversion from the formatted type to the value type, or null if no custom conversion is required.
A providing custom conversion from the value type to the formatted type, or null if no custom conversion is required.
The in effect for the cell.
A for the display value type, or null to use the default converter.
A for the cell value type, or null to use the default converter.
Defines an object that can invoke a .