Print Page | Close Window

Transpose 2 rows

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
Printed Date: 16 May 2022 at 6:21pm
Software Version: Web Wiz Forums 12.04 -

Topic: Transpose 2 rows
Posted By: Todd Forsberg
Subject: Transpose 2 rows
Date Posted: 17 November 2013 at 4:13pm
How would one go about transposing the positions of two rows in a reportcontrol?

Posted By: Willowmaster
Date Posted: 18 November 2013 at 9:17am
If it's only a visual change.

Dim lngOrgPos1 As Long
    If Column1.Index > Column2.Index Then
        lngOrgPos = Column1.Index
        Column2.Move  Column1.Index
        Column1.Move lngOrgPos
        lngOrgPos = Column2.Index
        Column1.Move  Column2.Index
        Column2.Move lngOrgPos
    End if
Something like this?

Product: Xtreme SuitePro (ActiveX) version 15.3.1

Platform: Windows XP (32bit) - SP 3 (on VMWare)

Language: Visual Basic 6.0

Posted By: Todd Forsberg
Date Posted: 22 November 2013 at 11:03am
Thanks, I'll give it a try.

Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 -
Copyright ©2001-2021 Web Wiz Ltd. -