1520459 - How to Change the Sort Direction of a Group Using the RAS .NET SDK

SAP Knowledge Base Article - Public

1520459 - How to Change the Sort Direction of a Group Using the RAS .NET SDK

Symptom

How do you change a group's sort order when using the RAS .NET SDK?

Resolution

Use

DataDefController.SortController.ModifySortDirection(groupNum, sortOrder)

where groupNum is the 0-based index into the report's array of groups and sortOrder is

CrystalDecisions.ReportAppServer.DataDefModel.CrSortDirectionEnum.crSortDirectionDescendingOrder
CrystalDecisions.ReportAppServer.DataDefModel.CrSortDirectionEnum.crSortDirectionAscendingOrder

A sample to demonstrate this is attached: NET_VB2005_RAS-Unmanaged_BE12_Change_SortOrder.zip

See Also

1211983 - Changing the sort order of groups at runtime

Keywords

vb visual basic visualbasic net sdk api change alter modify arrange rearrange sort sorting order direction group , KBA , BI-DEV-NET , BI Software Development Kits (SDKs) - .NET or Other , How To

Product

SAP Crystal Reports XI R2

Attachments

NET_VB2005_RAS-Unmanaged_BE12_Change_SortOrder.zip