Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
395
Ultragrid : sort by one column and group by another column
posted

Hello,

I have a datatable as follows:-

QuestionID,QuestionText,QuestionGroup,Sequence.

I want to group this by questionGroup but sort by Sequence ascending.

I did following:-

ultragrid.displaylayout.bands(0).columns("Sequence").sortIndicator = sortindicator.ascending

ultragrid.displaylayout.bands(0).sortedColumns.add("QuestionGroup",false,true)

 

This sorts by Sequence and groups by Question group. But it also sorts by QuestionGroup.

Here is what I have:-

I want General Information group first followed by Billing information followed by Processing Information.

Any idea?

Thank you very much