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.

Select entire row on right click for gridgroupingcontrol

Thread ID:

Created:

Updated:

Platform:

Replies:

79651 Feb 19,2009 07:51 AM Feb 23,2009 10:41 AM Windows Forms 3
loading
Tags: Grouping
Administrator [Syncfusion]
Asked On February 19, 2009 07:51 AM

Hi ,

Can someone please point me on how can i select/highlight the row when the user right clicks somewhere on the grid.

FYI - I am using gridgrouping control.

Thanks
-Gurtaran


Lingaraj S [Syncfusion]
Replied On February 20, 2009 10:49 AM

Hi gurtaran,

Thank you for your interest in Syncfusion products.

It can be achived by using the property ListBoxSelectionMode

Plese refer the code below:

gridGroupingControl1.TableOptions.AllowSelection = Syncfusion.Windows.Forms.Grid.GridSelectionFlags.None;
gridGroupingControl1.TableOptions.ListBoxSelectionMode = SelectionMode.One;

Let me know if you have any queries.

Regards,
Lingaraj S


Administrator [Syncfusion]
Replied On February 21, 2009 12:05 AM

Hi Lingaraj,

Thanks for your response.In my grid i would like to select multiple rows , so i am using listselectionmode as multiextended.Will selecting the property to one not restrict only selecting a single row.

Please advise.

Thanks
-Gurtaran

Let me know if

>Hi gurtaran,

Thank you for your interest in Syncfusion products.

It can be achived by using the property ListBoxSelectionMode

Plese refer the code below:

gridGroupingControl1.TableOptions.AllowSelection = Syncfusion.Windows.Forms.Grid.GridSelectionFlags.None;
gridGroupingControl1.TableOptions.ListBoxSelectionMode = SelectionMode.One;

Let me know if you have any queries.

Regards,
Lingaraj S




Lingaraj S [Syncfusion]
Replied On February 23, 2009 10:41 AM

Hi Gurtaran,

Thank you for your interest in Syncfusion products.

Highlight the row when the user right clicks on the grid it can be achived by using the property SelectCellsMouseButtonsMask.

Please refer the code below:
this.gridGroupingControl1.TableControl.Model.Options.SelectCellsMouseButtonsMask = MouseButtons.Left

Let me know if you have any queries.

Regards,
Lingaraj S


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.

;