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

GridDataControl Grouped columns query

Thread ID:

Created:

Updated:

Platform:

Replies:

112410 Sep 20,2013 02:15 PM UTC Oct 1,2013 04:05 AM UTC WPF 1
loading
Tags: GridControl
Michael Mendelevich
Asked On September 20, 2013 02:15 PM UTC

Hi, 

I am using GridDataControl. 
I want to provide grouping for Columns in the XAML. 
I tried this 
 <syncfusion:GridDataControl.GroupedColumns>
                    <syncfusion:GridDataGroupColumn ColumnName="Role"/>
</syncfusion:GridDataControl.GroupedColumns>

I want to know if its possible to provide conditional grouping. Particularly I want to display the group header only if there are more than one items in that group. 

So for example
  Name ID Department Role
Role: Manager - 1 Items
  William 3 Sales Manager
Role: Analyst - 3 Items  
  Alex 34 Sales Analyst
  Bob 35 Sales Analyst
  Chris 36 Sales Analyst

Should look like :- 
  Name ID Department Role
  William 3 Sales Manager
Role: Analyst - 3 Items
  Alex 34 Sales Analyst
  Bob 35 Sales Analyst
  Chris 36 Sales Analyst


Please advise on how this can be achieved. 
I could achieve this in WPF DataGrid. 



Gobinath A [Syncfusion]
Replied On October 1, 2013 04:05 AM UTC

Hi Michael,

Sorry for the delay in getting back to you.

We have analyzed your requirement. We regret to inform that we do not have support for displaying the group header only if there are more than one record in that group. But we have prepared a workaround that tries to meet your requirement by hiding the group row header. Since we hide the row header, the records which do not have group header seems that they belong to previous group.

You can download the sample in the following location.

Sample: GridDataControl_grouping.zip

Please let us know if you have any queries.

 

Regards,

Gobinath A

 


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

;