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

Force to highlight row on selection, and related some program problem

Thread ID:





119930 Aug 15,2015 07:15 AM UTC Aug 18,2015 11:01 AM UTC WinForms 3
Tags: GridGroupingControl
Michael K
Asked On August 15, 2015 07:15 AM UTC

Dear Sir :

Today, I have read your example 

to force the grid control to select whole row on user click any cell

However, we have get some problem after that:
1. When I complete our statement and dispose the form, it will get exception error and the source come from "Syncfusion.Grid.Grouping.Windows" <- I can skip this error under the exception case
2. The Text in custom filter bar will not be work.

Therefore, is that any good way to force user to select the whole row (without using event method?)



Venkatesh Sundaram [Syncfusion]
Replied On August 17, 2015 01:17 PM UTC

Hi Michael,

Thank you for your interest in Syncfusion products.

To select the whole row without using the events, you can use the property ListBoxSelectionMode.

Code snippet:

//Disables the grid selection
gridGroupingControl1.TableOptions.AllowSelection = Syncfusion.Windows.Forms.Grid.GridSelectionFlags.None;

//Used to select the whole row

gridGroupingControl1.TableOptions.ListBoxSelectionMode = SelectionMode.One;

Let me know if you have any queries.



Michael K
Replied On August 18, 2015 08:31 AM UTC

Dear Venkat:

Thank for your advise, it work, 
but for solving selection cell background color is different from other column , 
I have add one more code
 gridGroupingControl1.TableOptions.ListBoxSelectionCurrentCellOptions = GridListBoxSelectionCurrentCellOptions.None



Venkatesh Sundaram [Syncfusion]
Replied On August 18, 2015 11:01 AM UTC

Hi Michael,

Thanks for the update.

If you set the ListBoxSelectionCurrentCellOptions as None, the current cell drawn with the same color used for highlighting the whole record. Please refer the below kb for reference.



Please let us know if you have any concern.



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