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.
Syncfusion Feedback

Disabling Header Selection GridgroupingControl

Thread ID:

Created:

Updated:

Platform:

Replies:

58546 Mar 24,2007 09:37 PM UTC Mar 30,2007 07:51 PM UTC Windows Forms 4
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On March 24, 2007 09:37 PM UTC

Is there a way to turn off selection of group / header rows in a gridgroupingcontrol? Below is the properties I have set.

this.ggcDWP.TableOptions.AllowDropDownCell = false;
this.ggcDWP.TableOptions.AllowSelection = ((Syncfusion.Windows.Forms.Grid.GridSelectionFlags)((Syncfusion.Windows.Forms.Grid.GridSelectionFlags.Row | Syncfusion.Windows.Forms.Grid.GridSelectionFlags.AlphaBlend)));
this.ggcDWP.TableOptions.ListBoxSelectionColorOptions = Syncfusion.Windows.Forms.Grid.Grouping.GridListBoxSelectionColorOptions.DrawAlphablend;
this.ggcDWP.TableOptions.ListBoxSelectionMode = System.Windows.Forms.SelectionMode.One;

Administrator [Syncfusion]
Replied On March 26, 2007 05:28 PM UTC

Try changing the AllowSelection property to none to see if this gives you what you want. By doing so, you indicate that the grid should use the record selection architecture specific to GridGroupingControl instead of the more general cell selection support inherited from GridControlBase.

this.gridGroupingControl1.TableOptions.AllowSelection = Syncfusion.Windows.Forms.Grid.GridSelectionFlags.None;

Mike
Replied On March 26, 2007 09:23 PM UTC

Thanks for the response.

Unfortunately, this still allows selection of the grouping rows.

Focus is moved to the + - buttons on the grouping row.

Any other suggestions?


>Try changing the AllowSelection property to none to see if this gives you what you want. By doing so, you indicate that the grid should use the record selection architecture specific to GridGroupingControl instead of the more general cell selection support inherited from GridControlBase.

this.gridGroupingControl1.TableOptions.AllowSelection = Syncfusion.Windows.Forms.Grid.GridSelectionFlags.None;

Administrator [Syncfusion]
Replied On March 27, 2007 10:58 AM UTC

If you do not want the focus to go to the +/- cell, you can handle the TabelControlCellClick event and cancel it for any cell that you do not want to accept a click. Here is a little sample.

http://www.syncfusion.com/Support/user/uploads/WindowsApplication106_83f157a8.zip

Mike
Replied On March 30, 2007 07:51 PM UTC

Thanks for the response.

While this example doesn't allow selection of the groups it still removes focus from the record when you click on a grouping row. Is there anyway to prevent that?

Thanks again

>Is there a way to turn off selection of group / header rows in a gridgroupingcontrol? Below is the properties I have set.

this.ggcDWP.TableOptions.AllowDropDownCell = false;
this.ggcDWP.TableOptions.AllowSelection = ((Syncfusion.Windows.Forms.Grid.GridSelectionFlags)((Syncfusion.Windows.Forms.Grid.GridSelectionFlags.Row | Syncfusion.Windows.Forms.Grid.GridSelectionFlags.AlphaBlend)));
this.ggcDWP.TableOptions.ListBoxSelectionColorOptions = Syncfusion.Windows.Forms.Grid.Grouping.GridListBoxSelectionColorOptions.DrawAlphablend;
this.ggcDWP.TableOptions.ListBoxSelectionMode = System.Windows.Forms.SelectionMode.One;

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

;