Base Combo Box CellData Source Property
This gets or sets the data source for the list control
Definition
Namespace: EWSoftware.ListControls.DataGridViewControls
Assembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2024.12.31.0
Assembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2024.12.31.0
C#
public Object? DataSource { get; set; }VB
Public Property DataSource As Object
Get
SetC++
public:
property Object^ DataSource {
Object^ get ();
void set (Object^ value);
}F#
member DataSource : Object with get, setProperty Value
ObjectThe data source object must support the IList interface such as a DataSet or an Array. The default is null and it will use whatever is in the Items collection instead. If using a data source, set the DisplayMember and ValueMember properties too. Setting this property to null also clears the DisplayMember property.
A data source cannot be used with the SortOrder property. If a non-null data source is set, the SortOrder property is set to None automatically.
Exceptions
| ArgumentException | This is thrown if the data source does not support the IList interface. |