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

Select entire row on right click for gridgroupingcontrol

Thread ID:

Created:

Updated:

Platform:

Replies:

79651 Feb 19,2009 12:51 PM UTC Feb 23,2009 03:41 PM UTC WinForms 3
loading
Tags: Grouping
Administrator [Syncfusion]
Asked On February 19, 2009 12:51 PM UTC

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 03:49 PM UTC

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 05:05 AM UTC

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 03:41 PM UTC

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.

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

;