We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to bind SelectedValue for the SfComboBox within the SfDataGrid?

Platform: WinRT |
Control: SfComboBox

In SfComboBox, you can bind the SelectedValue property of the SfComboBox. When SfComboBox is used as a template for the SfDataGrid column, set the SelectedValue in a separate SfComboBox. You can also set the SelectedValue for each SfComboBox in the SfDataGrid in a loaded event. This can be achieved in the following code.




Figure 1: SelectedValues are binded to the SfComboBox

Figure 2: SfComboBox dropdown is opened

You must log in to leave a comment
Huy Nguyen Xuan
May 25, 2019

Hello. Can I apply for xamarin form? Because I need to add a column combobox to the grid of xamarin form Thank you.

Pradeep Kumar Balakrishnan [Syncfusion]
May 29, 2019

Hi Huy Nguyen Xuan,

Thank you for your interest in Syncfusion products.

We can't do the same in Xamarin forms datagrid, you can load SfCombo box in the grid template column, but you can't bind the display member like this. In the following link, we have prepared a sample your requirement. In that we loaded SfComboBox in the template column but the initial combo box display value was hot coded.


We planned to provide the SfComboBox column in DataGrid itself for the 2019 volume 2 main release, which is expected to be rollout by the end of June 2019. Using that, we can achieve this requirement exactly

Regards, Pradeep Kumar B

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile