Hi. I'm using VS.net 2008 and CR 2008, and I've been trying to change the sorting field within a group during runtime. Here is the code I'm trying:

Code:
        Dim myReport As New ReportDocument
        Dim fielddef As FieldDefinition

        fielddef = myReport.Database.Tables.Item(0).Fields.Item("startnummer")
        myReport.DataDefinition.SortFields.Item(0).Field = fielddef
But it only changes the grouping, and I don't want to change that. Is it impossible to change the sorting field without affecting the grouping?

Hope you understand my problem, and thanks for all the help