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

How to replace the plus/minus cell of the group caption row with an empty cell when there is only one record in that group?

Platform: WinForms |
Control: GridGroupingControl |
Published Date: April 30, 2011 |
Last Revised Date: March 6, 2015

Description:

By default, the GridGroupingControl shows the plus/minus symbol for all the groups whether the group contains only one record or many records. When you want to hide the plus/minus symbol for the groups that have only one record, then use the following solution.

Solution:

In order to replace the Plus/Minus PushButton of the caption row, you need to handle the QueryCellStyleInfo event. In the event handler, change the PushButton CellType to Static CellType and expand the group that has only one record.

C#

VB

The following screenshot displays the plus/minus symbol hidden.

 

C:\Users\Usha Clementine\AppData\Roaming\Skype\ushah_1933\media_messaging\media_cache\^2F6C08B062C337B4D232189C8DF2B27B61678DE6BD2562D026^pimgpsh_fullsize_distr.jpg

Figure 1: Plus/Minus symbols hidden

Sample Links:

PlusMinusButtonHide-C#506051382.zip

PlusMinusButtonHide-VB390623295.zip

2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

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