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

    The C1ComboBox 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 (ViewController.m) to achieve data binding.

    CS
    Copy Code
    ComboBoxEdit.DisplayMemberPath = "Name";
    ComboBoxEdit.ItemsSource = Countries.GetDemoDataList();