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.

Dynamic Combo box

Thread ID:

Created:

Updated:

Platform:

Replies:

10832 Feb 13,2004 04:04 AM Feb 13,2004 05:36 AM Windows Forms 3
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On February 13, 2004 04:04 AM

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 04:48 AM

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 04:52 AM

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 05:36 AM

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.

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.

;