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.

Can I use a combobox in the gridgroupingcontrol?

Thread ID:

Created:

Updated:

Platform:

Replies:

32180 Jul 24,2005 09:22 PM Jul 27,2005 04:42 AM Windows Forms 8
loading
Tags: GridControl
Damien Sawyer
Asked On July 24, 2005 09:22 PM

Hi, I''m using the groupedgridcontrol 2.0.5.0. Could someone please tell me if I can have a combobox for a cell, linked to an IList? Thanks very much in advance, Damien

Administrator [Syncfusion]
Replied On July 25, 2005 02:17 AM

You can set the DisplayMember/ValueMember/DataSource property for the column''s style. this.gridGroupingControl1.TableDescriptor.Columns["Col"].Appearance.AnyRecordFieldCell.CellType = "ComboBox"; this.gridGroupingControl1.TableDescriptor.Columns["Col"].Appearance.AnyRecordFieldCell.DataSource = someDataList; this.gridGroupingControl1.TableDescriptor.Columns["Col"].Appearance.AnyRecordFieldCell.DisplayMember = "displayCol"; this.gridGroupingControl1.TableDescriptor.Columns["Col"].Appearance.AnyRecordFieldCell.ValueMember = "valueCol";

Jessy Liu
Replied On July 26, 2005 05:02 AM

Hi Clay, Where can I see what the possible string values are for CellType? I would like to have a DateTimePicker but would like to set this manually so possibly in Appearance.AnyRecordFieldCell.CellType Thanks!

Administrator [Syncfusion]
Replied On July 26, 2005 06:19 AM

You can see the celltypes in a dropdown if you open any Appearance.XXXXX.CellType property in the designer. You can also see a list if you look for CellType in the Help Index for Essential Grid. If you just want to set the Date, you can use the "MonthCalendar" CellType. If you want to set the time as well, then you woul dhave to add your own celltype. Here is a KB that has the code you would need. http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=35

Jessy Liu
Replied On July 26, 2005 01:08 PM

Hi Clay, The example you posted uses a GridControl and I see you can use GridControl.CellModels.Add to add the custom model. However, I can''t see the equivalent for the GridGroupingControl. There is a .Appearance.XXXX.CellModel but this is read-only and wouldn''t enable me to give the model a name to be used in .CellType anyway. Please can you point me in the right direction. Thanks!

Jessy Liu
Replied On July 26, 2005 01:08 PM

Hi Clay, The example you posted uses a GridControl and I see you can use GridControl.CellModels.Add to add the custom model. However, I can''t see the equivalent for the GridGroupingControl. There is a .Appearance.XXXX.CellModel but this is read-only and wouldn''t enable me to give the model a name to be used in .CellType anyway. Please can you point me in the right direction. Thanks!

Administrator [Syncfusion]
Replied On July 26, 2005 01:42 PM

You use the this.gridGroupingControl1.TableModel.CellModels collection. See this sample. \Syncfusion\Essential Studio\3.2.1.0\Windows\Grid.Windows\Samples\Grouping\CustomCellTypes

Jessy Liu
Replied On July 27, 2005 04:31 AM

Hi Clay, I''m on 2.1.0.9. Is there an equivalent example? Thanks.

Administrator [Syncfusion]
Replied On July 27, 2005 04:42 AM

Here is a copy of the 3210 sample that I was able to build with 2051. I think it should build OK with 2109 too. http://www.syncfusion.com/Support/user/uploads/CustomCellTypes_a6159f38.zip

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.

;