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.

How to change the style of a selected row in GridGroupingControl?

 

To change the selected records text font, the QueryCellStylenfo event can be used. By default, GridGroupingControl have the two kinds of selections.

To change the selection back color when the selection is enabled by using AllowSelection property, AlphaBlendSelectionBackColor property of TableOptions can be used.

To change the selection back color when the selection is enabled by using ListBoxSelectionMode property, SelectionBackColor property of TableOptions can be used.

Code snippet

Using AllowSelection

C#

 

VB

 

Using ListBoxSelectionMode

C#

 

VB

 

Screenshot

 

Sample Link

C#: Display Behavior CS

VB: Display Behavior VB

Article ID: Published Date: Last Revised Date: Platform: Control:
6947 06/29/2016 11/01/2017 Windows Forms GridGroupingControl
Did you find this information helpful?
Comments
hanuman Oct 31, 2017

This code is not working as expected when I change AllowSelection property as below

this.grid1.TableOptions.AllowSelection = Syncfusion.Windows.Forms.Grid.GridSelectionFlags.Row;

Reply
Piruthiviraj Malaimelraj [Syncfusion] Nov 06, 2017

Hi Hanuman,

Thanks for your feedback.

We have modified the document with proper details and published successfully.

Please let us know if you have any queries.


Regards,

Piruthiviraj

Reply
Add Comment
You must log in to leave a comment

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.