Select entire row on right click for gridgroupingcontrol

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


3 Replies

LS Lingaraj S Syncfusion Team 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



AD Administrator Syncfusion Team 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





LS Lingaraj S Syncfusion Team 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


Loader.
Up arrow icon