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

Dynamic Combo box

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

3 Replies

AD Administrator Syncfusion Team 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.


AD Administrator Syncfusion Team 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.


AD Administrator Syncfusion Team 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

Loader.
Up arrow icon