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

combobox programatically

Thread ID:





48400 Aug 25,2006 09:14 PM UTC Aug 29,2006 01:29 PM UTC ASP.NET Web Forms (Classic) 3
Tags: GridGroupingControl
David A. Gonzales
Asked On August 25, 2006 09:14 PM UTC

I recently upgraded to the lastest Syncfusion Suite and was trying to use the GridGroupControl (ASP.NET). I need any example that allows me to programatically generate ComboBoxes in certain columns (not known beforehand) based upon the data that is returned. The data has some keys that link to a SQL table that contain codes and descriptions that i need to use in a ComboBox. I have done this with a WinForm control (Syncfusion GridDataBoundGrid control) using the InternalColumns, StyleInfo and a DataTable but cannot seem to find a complete example for the Web version.

Thank you.

Ramu [Syncfusion]
Replied On August 26, 2006 12:16 AM UTC

Hi David,

We are looking into it and will update you as soon as possible.


Ramu [Syncfusion]
Replied On August 29, 2006 12:46 AM UTC

Hi David,

Here is the sample that adds label and combo box according to the values of one of the columns from the grid (we displayed the DropDownList and labels with respect to the values of the ''CategoryID'' )

I have added the combo box and label programmatically using templates please look in the following KB.


In QuerCellStyleInfo event, we decided to show the respected control (label or combo box). We have loaded different values from datatable to combo box with respect to the value from the Grid. (The data''s used here are not relevant and done for sample purpose.).

We used item templates in this sample and let us know if you need the sample using edititemtemplate or any other specifications.

You can download the sample from here:


Please let me know if you have any queries.


David A. Gonzales
Replied On August 29, 2006 01:29 PM UTC

That helps very much. Thank you so much for the sample.



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.

Please sign in to access our forum

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

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