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.

combobox programatically

Thread ID:

Created:

Updated:

Platform:

Replies:

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

Hi,
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 25, 2006 08:16 PM

Hi David,

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

Thanks,
Ramu.K

Ramu [Syncfusion]
Replied On August 28, 2006 08:46 PM

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.

http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=373

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:

ProgramaticallyAddingCombobox


Please let me know if you have any queries.

Thanks,
Ramu.K

David A. Gonzales
Replied On August 29, 2006 09:29 AM

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

David.

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.

;