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

ggc as checked listview

Thread ID:





51711 Nov 12,2006 04:58 PM UTC Nov 13,2006 06:42 AM UTC WinForms 1
Tags: Grouping
Asked On November 12, 2006 04:58 PM UTC

I have the ggc behaving like a checked list view using the code below.

this.gridGroupingControl1.DataSource = dt;

this.gridGroupingControl1.TableDescriptor.Appearance.AnyRecordFieldCell.CellType = "Static";
this.gridGroupingControl1.TableOptions.ShowRowHeader = false;
this.gridGroupingControl1.TableDescriptor.AllowNew = false;
this.gridGroupingControl1.TableOptions.ListBoxSelectionMode = SelectionMode.One;
this.gridGroupingControl1.TableOptions.ListBoxSelectionCurrentCellOptions = GridListBoxSelectionCurrentCellOptions.HideCurrentCell;
this.gridGroupingControl1.TableModel.Options.ShowCurrentCellBorderBehavior = GridShowCurrentCellBorder.HideAlways;
this.gridGroupingControl1.TopLevelGroupOptions.ShowCaption = false

The listview pat of the implementation works fine. However, I'm having problem having the checkbox to work.

I have a checkbox in the first column of the header and i also have the first column as a checkbox field, following the example in this forum (bounded checkbox in ggc).

However, when I clicked the checkbox, it is not checked and seems to be disable or readonly. The row is selected, but the check box is not checked. is this this because of ..

"AnyRecordFieldCell.CellType = Static" in the code above;

I do not think this should be happening since I have this line below...

this.gridGroupingControl.TableDescriptor.Columns["FirstColumn"].Appearance.AnyRecordFieldCell.CellType = "CheckBox";

can you all help?

Administrator [Syncfusion]
Replied On November 13, 2006 06:42 AM UTC

Hi James,

The reason is that you are setting the ListBoxSelectionCurrentCellOptions property to GridListBoxSelectionCurrentCellOptions.HideCurrentCell. It doesn't select the current cell in a Grid. But you can do this by handling the TableControlPrepareViewStyleInfo event. Please try the attached sample and let me know if this helps.

Sample : http://www.syncfusion.com/Support/user/uploads/GGCCheckBox_c0bb1976.zip

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