I am working on a SSRS report which has a Table with 2 groups. Used custom code to store the outer group data and display it in the header. This works great for most of the data. However, found couple of instances where the last page of the group( A group can run into multiple pages and there is a page break at the start of each group) is displaying the data of the next group in the header. When I display the stored group data in the group footer, the group details are correct. Confused as to why the header is displaying incorrect data for a few groups. Any pointers as to why this is happening?
Custom code:
Public Shared Dim field as String
Public function Set field(ByVal Val as String)
field1 = Val
End Function
Expression in Outer group to save the group data:
=Code.Setfield(field name)
Expression to display the saved group data in Header:
=Code.field1
Thanks.