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.
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 fields “CompanyName” and “CustomerID” are added.
The following code example illustrates on how the Modify() method works.
The following screenshot displays only two fields, CompanyName and CustomerID.
Figure 1: Only two fields displayed in GridGroupingControl
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|