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.

custom grouping case

Thread ID:

Created:

Updated:

Platform:

Replies:

118558 Mar 18,2015 02:22 PM Mar 20,2015 10:35 AM WPF 3
loading
Tags: SfDataGrid
issam
Asked On March 18, 2015 02:22 PM

Hi, it's for a health application  .


Let's say that i have these classes or entities
 public partial class CONSULTATION
{
        public int ID_CONSULTATION { get; set; }
        public int ID_PATIENT { get; set; }
        public System.DateTime DT { get; set; }
        public List<EXAMEN> EXAMENS { get; set; }
}

 public partial class EXAMEN
{  
        public int ID_EXAMEN{ get; set; }
        public string EX_TITLE { get; set; }
 }
 so each Cconsultaion may have 0..n Examens

and i have  a datagrid bound to List<Consultation> .

what i want to get is , a grouping based on EXAMEN,

any help is welcome





Saravanan M [Syncfusion]
Replied On March 20, 2015 08:10 AM


Hi Issam,

Thank you for contacting Syncfusion support,

We have analyzed your query and you can achieve your requirement by CustomGroup in SfDataGrid. In attached sample we have done custom group based on EXAMENS column and you can download the sample from below location.

Sample Location: CustomGrouping_Sample.zip

Please let us know if you have any other queries,

Regards,

Saravanan.M



issam
Replied On March 20, 2015 10:12 AM

Many thanks, !

one little thing :
is there a way to sort the grid by the groups items count ?



Saravanan M [Syncfusion]
Replied On March 20, 2015 10:35 AM

Hi Issam,

Thanks for your update,

Yes, we are able to Sort the Groups by clicking the Grouped Column Header based on the GroupItems count. Please refer the below documentation link to achieve your requirement.

Documentation: http://help.syncfusion.com/ug/wpf/documents/sortgroupsbasedonsum.htm

Please let us know if you have any other queries,

Regards,

Saravanan.M


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.

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.

;