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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to change the datasource for ComboBox cell dynamically?

By default, particular cell style cannot be changed at run time for the GridGroupingControl without using QueryCellStyleInfo event. So the datasource of the particular cell cannot be changed on run time.

In order to change the data source of the ComboBoxCell based on the text typed in the cell dynamically, custom cell renderer and cell model which is derived from ComboBoxCellRenderer and ComboBoxCellModel can be used.

Creating CellModel

Code snippet

C#

 

VB

 

Creating CellRenderer

Code snippet

C#

 

VB

 

Adding CellModel and Assigning CellType

Code snippet

C#

 

VB

 

Screenshot

 

Sample Links

C#: ComboBox Cell Datasource CS

VB: ComboBox Cell Datasource VB

Article ID: Published Date: Last Revised Date: Platform: Control:
6951 06/29/2016 06/30/2016 Windows Forms GridGroupingControl
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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