All pages
Powered by GitBook
1 of 1

Loading...

DataGridViewComboBoxCell

Wisej.Web.DataGridViewComboBoxCell

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.0.0.0)

  • DataGridViewElement

    • DataGridViewCell

Displays an editable control in a cell when in edit mode.

Constructors

DataGridViewComboBoxCell()

Properties

AutoCompleteMode

: Returns or sets how automatic completion works for the .

CharacterCasing

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

DataSource

: Returns or sets the data source that contains the possible selections shown in the drop-down list.

Throws:

  • The specified value when setting this property is not null and is not of type nor .

DisplayMember

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

Throws:

  • The property is not null and the specified value when setting this property is not null or and does not name a valid property or column in the data source.

DropDownStyle

: Returns or sets the style of the combo box.

EditType

: Returns the type of the cell's hosted editing control.

IconMember

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

Throws:

  • The property is not null and the specified value when setting this property is not null or and does not name a valid property or column in the data source.

IncrementalSelection

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

Items

: Returns the collection of the items contained in this .

LazyLoading

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

MaxInputLength

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

Throws:

  • The value is less than 0.

Sorted

: Returns or sets if the items in the combo box editor are automatically sorted.

Throws:

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

Tools

: Returns the instance of associated with this cell.

ValueMember

: 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:

  • The property is not null and the specified value when setting this property is not null or and does not name a valid property or column in the data source.

ValueType

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

VirtualScroll

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

Watermark

: 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.

Parameter
Type
Description

Returns: . The cell value.

Throws:

  • cellStyle is null.

  • The property value is null or the property value is null or value cannot be converted.

  • value is null or the type of value does not match the type indicated by the property.

Events

ItemsCollectionChanged

Fired when the collection changes.

A for the cell value type, or null to use the default converter.

value

Object

The display value of the cell.

cellStyle

DataGridViewCellStyle

The DataGridViewCellStyle in effect for the cell.

formattedTypeConverter

TypeConverter

A TypeConverter for the display value type, or null to use the default converter.

DataGridViewComboBoxCell
ComboBox
DataGridViewCell
Public Class DataGridViewComboBoxCell
    Inherits DataGridViewCell
AutoCompleteMode
DataGridViewComboBoxColumn
CharacterCasing
Object
ArgumentException
IList
IListSource
String
ArgumentException
DataSource
Empty
ComboBoxStyle
Type
String
ArgumentException
DataSource
Empty
Boolean
ObjectCollection
DataGridViewComboBoxCell
Boolean
ComboBox
Int32
ArgumentOutOfRangeException
Boolean
ArgumentException
ComponentToolCollection
ComponentToolCollection
String
ArgumentException
DataSource
Empty
Type
Boolean
ComboBox
String
Object
ArgumentNullException
FormatException
FormattedValueType
ValueType
ArgumentException
FormattedValueType
EventHandler
public class DataGridViewComboBoxCell : DataGridViewCell

valueTypeConverter

TypeConverter
TypeConverter