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

GridDataControl Grouped columns query

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. 



1 Reply

GA Gobinath A Syncfusion Team 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

 


Loader.
Live Chat Icon For mobile
Up arrow icon