Xamarin.Android | ComponentOne
Controls / Input / ComboBox / Features / Data Binding
In This Topic
    Data Binding
    In This Topic

    The C1ComboBox control provides ItemsSource and DisplayMemberPath properties to bind the control to data. The ItemsSource property lets you bind the control to a collection of items, and the DisplayMemberPath property sets the path to a value on the source object for displaying data.

    The following code snippet illustrates how to set these properties in code (MainActivity.cs) to achieve data binding.

    C#
    Copy Code
    comboBox.ItemsSource = Countries.GetDemoDataList();
    comboBox.DisplayMemberPath = "Name";