System.Windows.Forms.ComboBox.DataSource Property

Gets or sets the data source for this System.Windows.Forms.ComboBox.

Syntax

[System.ComponentModel.RefreshProperties(System.ComponentModel.RefreshProperties.Repaint)]
[System.ComponentModel.AttributeProvider(typeof(System.ComponentModel.IListSource))]
[System.ComponentModel.DefaultValue(null)]
public object DataSource { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

A data source can be a database, a Web service, or an object that can later be used to generate data-bound controls. When the ComboBox.DataSource property is set, the items collection cannot be modified.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0