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.
Syncfusion Feedback

How to remove fields in GridGroupingControl?

Description

In GridGroupingControl, each time while creating columns, fields are also created along with it and in some cases the fields are unnecessary. Therefore, when there are many columns, then the fields related to it are also added and creates performance problem. To overcome the addition of fields in GridGroupingControl refer to the following solution.

Solution

To stop adding the fields to the GridGroupingControl, use the Modify() method. By using this method the fields are not added altogether. You can add the necessary fields alone, by using the TableDescriptor.Fileds.Add() method. In the following code example, there are 11 fields and only two fieldsCompanyName” and “CustomerID” are added.

The following code example illustrates on how the Modify() method works.

C#

VB

The following screenshot displays only two fields, CompanyName and CustomerID.

Figure 1: Only two fields displayed in GridGroupingControl

Sample Link

CS: RemoveFields_GGC_CS

VB: RemoveFields_GGC_VB

Article ID: Published Date: Last Revised Date: Platform: Control:
4984 05/23/2015 05/23/2015 Windows Forms GridGroupingControl
Tags:
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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