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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How do you add and populate drop/combos on GGC cells?

Thread ID:

Created:

Updated:

Platform:

Replies:

57026 Feb 23,2007 09:01 PM UTC Feb 23,2007 11:02 PM UTC WinForms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On February 23, 2007 09:01 PM UTC

Hello,
I have a GGC for which I've enabled the AddNewRecord feature. I'd like to have provide predetermined choices for selected cells and list them in a drop down. Other values are typed in by the user. Do you have any suggestions?

Thanks,
Dimitri

Administrator [Syncfusion]
Replied On February 23, 2007 11:02 PM UTC

Hi Dimitri,

Thank you for being patience.

The following is a technique to have combobox in the GridGroupingControl. Please try it and let us know if you need any further assistance.

By Code:
>>>>>>>
StringCollection collection = new StringCollection();
collection.AddRange(new string[] {"One","Two","Three","Four"});
GridTableDescriptor tableDesc = this.gridGroupingControl1.TableDescriptor;
tableDesc.Columns[“Col1”].Appearance.AnyRecordFieldCell.CellType = "ComboBox";
tableDesc.Columns[“Col1”].Appearance.AnyRecordFieldCell.DataSource = collection;
>>>>>>>

By Design time:
>>>>>>
Please refer to the following video clip to set the dropdown in the designer mode.
VideoClip_ComboBox_GGC.zip
>>>>>>

Have a nice day.

Best regards,
Madhan

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.

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

;