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

How to embed CheckedListBox in GroupGridControl cell

Thread ID:





64351 Jul 18,2007 07:44 PM UTC Jul 20,2007 06:05 PM UTC WinForms 5
Tags: GridControl
Kiran Guptha
Asked On July 18, 2007 07:44 PM UTC

I need to embed CheckedListBox in GroupGridControl cell. Pls point to me some example


Rajagopal [Syncfusion]
Replied On July 19, 2007 01:07 AM UTC

Hi Kiran,

Thanks for your interest in Syncfusion Products.

You need to create a custom celltype as in the below sample which is shipped with the browser samples.


A custom CellType requires a model class and a renderer class. The model class handles the serialization requirements for the control and creates the renderer class. The renderer class handles the UI requirements of the cell.

For GridGroupingControl, custom celltypes has to be registered through TableModel.CellModels.Add function.
Refer this shipped sample for more details
\\Syncfusion\Essential Studio\5.1\windows\Grid.Grouping.Windows\Samples\FeatureSamples\CustomCellTypes

Here is a sample in GridGroupingControl with CheckedListBox cells.

Have a nice time.

Kiran Guptha
Replied On July 19, 2007 04:21 PM UTC

Hi Rajgopal,
Thanks for the examples. How to avoide useng OK & Cancel buttons on the User control. If user changes & click outside I w ant to save the changes to cell.
DropDownContainerCloseDropDown(object sender, PopupClosedEventArgs e) e.PopupCloseType has canceled or deactivated. I tried setting
ControlValue = this.ddUser.GetValuesToString(); which doesn't work.
Pls let me know the work around


haneefm [Syncfusion]
Replied On July 19, 2007 11:12 PM UTC

Hi Kiran,

I have modified the above attached sample as per your requirement. Please refer the attached sample for implementation and let me know if this helps.

////Modified code in DropDownUserControl.cs
protected override bool OnDeactivating()
// closethe dropdown with a Done setting
if (this.CurrentCell.IsDroppedDown)
this.CurrentCell.IsModified = true;
return base.OnDeactivating();

Sample :ModifiedGGC_CustomCellType.zip

Best regards,

Kiran Guptha
Replied On July 20, 2007 03:15 PM UTC

Hi Haneef,
Thaks for the reply. I found refresh issue with Tab button click when dropdown is open. Pls find the sample attached below.

Steps to reproduce
1. Click on the DropDown button in a cell
2. Do some selection changes
3. Click Tab. The Dropdown closes & the selection is not changed in the cell. Click Tab again the cell Refreshes.
I need a fix or workaround for this.
Pls let me know



haneefm [Syncfusion]
Replied On July 20, 2007 06:05 PM UTC

Hi Kiran,

You would probably have to set the celltext using GridModel in DropDownContainerCloseDropDown override method. You could use code such as:

public override void DropDownContainerCloseDropDown(object sender, PopupClosedEventArgs e)
if (e.PopupCloseType != PopupCloseType.Canceled)
if (this.NotifyCurrentCellChanging())
ControlValue = this.ddCtrl.GetValuesToString();
this.ControlText = ControlValue.ToString();
this.Grid.Model[RowIndex, ColIndex].Text = this.ControlText;
Grid.InvalidateRange(GridRangeInfo.Cell(RowIndex, ColIndex), GridRangeOptions.MergeCoveredCells); // Merge all cells
base.DropDownContainerCloseDropDown(sender, e);

Best regards,


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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