Page 1 of 1

Sorting Multiple Fields by Code

Posted: Sun Sep 09, 2007 12:19 am
by fkmfkm
Hi,

I am using this code to sort.

Dim dataBand As Stimulsoft.Report.Components.StiDataBand = _
report.Pages(0).Components("DataBand2")
dataBand.Sort = New String() {"DESC", "SecuredCount"}

The code above only sort by one field. How can I sort 2 or more fields ?

Thank you.

Sorting Multiple Fields by Code

Posted: Sun Sep 09, 2007 4:40 am
by Brendan
Sort by 3 Fields:

Code: Select all

dataBand.Sort = New String() {"DESC", "SecuredCount", "ASC", "ProductCode", "ASC", "OrderCode"}

Sorting Multiple Fields by Code

Posted: Mon Sep 10, 2007 8:29 am
by fkmfkm
Thanks a lot..me real noob