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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Dynamic Combo box

Thread ID:

Created:

Updated:

Platform:

Replies:

10832 Feb 13,2004 09:04 AM UTC Feb 13,2004 10:36 AM UTC WinForms 3
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On February 13, 2004 09:04 AM UTC

how can we make a dynamic combobox. i.e The combobox should be dynamically allocated and should contain the list of values obtained at runtime

Administrator [Syncfusion]
Replied On February 13, 2004 09:48 AM UTC

Is this a combobox in a Essential Grid grid cell? If so, you set the the style.DataSource, style.DisplayMember and style.ValueMember for the cell (or column) that holds the combobox after you create the datatable holding the contents of your droplist at runtime.

Administrator [Syncfusion]
Replied On February 13, 2004 09:52 AM UTC

Please give any working code with GridDataBoundGrid. >Is this a combobox in a Essential Grid grid cell? > >If so, you set the the style.DataSource, style.DisplayMember and style.ValueMember for the cell (or column) that holds the combobox after you create the datatable holding the contents of your droplist at runtime.

Administrator [Syncfusion]
Replied On February 13, 2004 10:36 AM UTC

I am not sure this is what you want, but here is a sample that adds a combobox to a column in a button handler at runtime for a datasource created in the button handler as well. forum10832_5795.zip If you want to dynamically provide the droplist of the combobox column based on the contents of some other cell, then you should try the technique in this KB. http://www.syncfusion.com/Support/article.aspx?id=567

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

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

;