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 cell type in GGC

Thread ID:

Created:

Updated:

Platform:

Replies:

84087 Jun 29,2009 06:21 AM Jun 30,2009 03:34 AM Windows Forms 2
loading
Tags: GridControl
Awanish
Asked On June 29, 2009 06:21 AM

Hi,

How can I set the text of ComboBox cell in GGC at runtime?

Thanks,
Awanish Kaul

Jisha Joy [Syncfusion]
Replied On June 29, 2009 08:53 AM

Hi Awanish,


You could have combobox cells inside GridGroupingControl by setting the CellType to ComboBox and specifying the ChoiceList. See the code:
StringCollection sc = new StringCollection();
sc.Add("One");
sc.Add("two");
this.gridGroupingControl1.TableDescriptor.Columns[2].Appearance.AnyRecordFieldCell.CellType = "ComboBox";
this.gridGroupingControl1.TableDescriptor.Columns[2].Appearance.AnyRecordFieldCell.ChoiceList = sc;

Let me know if this helps.

Regards,
Jisha

Awanish
Replied On June 30, 2009 03:34 AM

Thanks Jisha.

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.

;