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.

how to set values for a combobox in a gridgrouping control

Thread ID:

Created:

Updated:

Platform:

Replies:

70197 Nov 30,2007 05:33 PM Dec 3,2007 03:18 AM ASP.NET Web Forms (Classic) 1
loading
Tags: GridGroupingControl
sri
Asked On November 30, 2007 05:33 PM

hi,

I am trying to insert values for a combobox in a gridgroupingcontrol.

this.GridAdminUser.TableDescriptor.Columns[2].
...
could anyone please help me with it.

Thanks,
Sri




Rajarajeswari S [Syncfusion]
Replied On December 3, 2007 03:18 AM



Hi Sri,

You can set the value for the Combo box in GGC by assigning DataSource property to the particular column. Please refer the below code snippet which illustrates this.


this.GridGroupingControl1.TableDescriptor.Columns[2].Appearance.AnyRecordFieldCell.CellType = "ComboBox";
StringCollection rows = new StringCollection();
//Points to first index of combo box item. Does nothing even if it got selected.
rows.Add("John"); rows.Add("James"); rows.Add("Christy");
GridGroupingControl1.TableDescriptor.Columns[2].Appearance.AnyRecordFieldCell.DataSource = rows;

Please refer the sample from the below link which illustrates the above:

http://websamples.syncfusion.com/samples/Grid.Web/6.1.0.23/F70197_new/main.htm

Regards,
Raji



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.

;