Members  Example 
Syncfusion.SfDataGrid.XForms Namespace : GridComboBoxColumn Class

GridComboBoxColumn Class

Represents a SfDataGrid column that hosts SfComboBox content in its cells.
Object Model
GridComboBoxColumn ClassIItemsSourceSelector Interface
public class GridComboBoxColumn : GridColumn 
Use GridComboBoxColumn to display the columns of SfCombobox data as a Syncfusion.SfDataGrid.XForms.Renderers.GridComboBox.

To create a column, add it to the SfDataGrid.Columns collection. To populate the column, bind the column to the data by using the DisplayBinding property. The Binding property is applied to the Xamarin.Forms.Label view created in the column. The Xamarin.Forms.BindableObject.BindingContext for the view in each cell is the data item for the row the cell is in. Therefore, to set up the binding you only have to set the Xamarin.Forms.Binding.Path. Optionally, you can specify a Xamarin.Forms.Binding.Converter if you want to convert the data. In MacOS. We have loaded GridPicker in GridComboBoxColumn, since GridComboBox is not supported in MacOS.

    <sfgrid:GridComboBoxColumn BindingContext = "{x:Reference viewModel}"
                            HeaderText="Dealer Name"                                 
                            ItemsSource="{Binding CustomerNames}"                                 
Inheritance Hierarchy



Syncfusion.SfDataGrid.XForms: 18.1451.0.52

See Also