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

Expandable/collapsible columns in Essential Grid?

Thread ID:

Created:

Updated:

Platform:

Replies:

116067 Mar 26,2014 09:09 PM UTC Apr 1,2014 07:43 AM UTC WinForms 1
loading
Tags: GridControl
John
Asked On March 26, 2014 09:09 PM UTC

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

Arun Kumar V [Syncfusion]
Replied On 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.


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

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

;