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. Image for the cookie policy date

Expandable/collapsible columns in Essential Grid?

Hi, I'm considering a trial run with Essential Grid.  One feature I'm looking for is a way to present a very large grid (25-30 columns) in a 'friendly' way.  There are basically three groups of columns, and I'd like to allow the user to be able to hide a group if they aren't interested in viewing or modifying the columns for that group.

Is this supported?

Thanks...

1 Reply

AK Arun Kumar V Syncfusion Team April 1, 2014 07:43 AM UTC

Hi John,

Thanks for your interest in Syncfusion products.

Yes, The reported behavior is achievable. You can make any one of the following method of GridGrouping control’s for this purpose.

1.GridGroupingControl:

There are many ways to remove/hide the columns from the grid. Please make any one of the below method.

(i)You can make use of the ColHiddenEntries

Code Snippet:

int n=5;//say you are having 5 columns in a group.

GridColHidden[] hiddenCols = new GridColHidden[n];

for (int i = 0; i < n; i++)

     hiddenCols[i] = new GridColHidden(i + 1);

this.gridGroupingControl1.TableControl.Model.ColHiddenEntries.AddRange(hiddenCols);

 

(ii)or you can remove the columns and add the required columns afterwards.

Code Snippet:

this.gridGroupingControl1.TableDescriptor.VisibleColumns.Remove("column name");

you can make use of any of the following sample in the following category.

Sample: Syncfusion\EssentialStudio\11.4.0.26\Windows\Grid.Grouping.Windows\Samples\Performance

Please let me know if you have any concerns.

Regards,

Arun.


Loader.
Up arrow icon