Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - BUG: DoPropExchange leads to duplicate columns
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

BUG: DoPropExchange leads to duplicate columns

 Post Reply Post Reply
Author
Message
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1201
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Topic: BUG: DoPropExchange leads to duplicate columns
    Posted: 17 April 2012 at 6:37am
Hi;

Using DoPropExchanges leads to duplicate columns when the user massively shows/hides columns by dragging out from report and dropping in by fieldchooser.
The resulting XML string showns duplicate ItemIndex and OldVisibleIndex entries.
How can I prevent these duplicate ItemIndex entries and ensure consistency?
<PrimaryReport CompactMode="1" Schema="38" ShowGroupBox="1" ShowIconView="0">
  <Columns>
    <Column ItemIndex="0" InternalName="" Alignment="35651584" StaticWidth="20" AutoWidth="20" Expanded="0" />
    <Column ItemIndex="2" InternalName="" Alignment="1" StaticWidth="30" AutoWidth="30" HeaderAlignment="35651584" Expanded="0" />
    <Column ItemIndex="1" InternalName="" SortIncreasing="0" Alignment="2" StaticWidth="26" AutoWidth="26" HeaderAlignment="2" Expanded="0" />
    <Column ItemIndex="8" InternalName="" SortIncreasing="0" StaticWidth="92" AutoWidth="92" OldVisibleIndex="3" Expanded="0" />
    <Column ItemIndex="6" InternalName="" SortIncreasing="0" StaticWidth="114" AutoWidth="114" Expanded="0" />
    <Column ItemIndex="3" InternalName="" Visible="0" StaticWidth="33" AutoWidth="33" OldVisibleIndex="3" Expanded="0" />
    <Column ItemIndex="4" InternalName="" Visible="0" StaticWidth="28" AutoWidth="28" OldVisibleIndex="5" Expanded="0" />
    <Column ItemIndex="5" InternalName="" Visible="0" StaticWidth="27" AutoWidth="27" OldVisibleIndex="4" Expanded="0" />
    <Column ItemIndex="9" InternalName="" Visible="0" StaticWidth="130" AutoWidth="130" OldVisibleIndex="7" Expanded="0" />
    <Column ItemIndex="10" InternalName="" Visible="0" StaticWidth="130" AutoWidth="130" OldVisibleIndex="7" Expanded="0" />
    <Column ItemIndex="7" InternalName="" Visible="0" StaticWidth="117" AutoWidth="117" OldVisibleIndex="7" Expanded="0" />
    <Column ItemIndex="14" InternalName="" Visible="0" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" OldVisibleIndex="8" Expanded="0" />
    <Column ItemIndex="14" InternalName="" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" Expanded="0" />
    <Column ItemIndex="15" InternalName="" Visible="0" StaticWidth="80" AutoWidth="80" HeaderAlignment="20" OldVisibleIndex="8" Expanded="0" />
    <Column ItemIndex="14" InternalName="" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" Expanded="0" />
    <Column ItemIndex="16" InternalName="" Visible="0" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" OldVisibleIndex="8" Expanded="0" />
    <Column ItemIndex="15" InternalName="" StaticWidth="80" AutoWidth="80" HeaderAlignment="20" Expanded="0" />
    <Column ItemIndex="17" InternalName="" Alignment="2" StaticWidth="38" AutoWidth="38" HeaderAlignment="22" Expanded="0" />
    <Column ItemIndex="23" InternalName="" Alignment="2" StaticWidth="72" AutoWidth="72" HeaderAlignment="22" Expanded="0" />
    <Column ItemIndex="18" InternalName="" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" Expanded="0" />
    <Column ItemIndex="19" InternalName="" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" Expanded="0" />
    <Column ItemIndex="20" InternalName="" Alignment="2" StaticWidth="52" AutoWidth="52" HeaderAlignment="22" Expanded="0" />
    <Column ItemIndex="21" InternalName="" Alignment="2" StaticWidth="54" AutoWidth="54" HeaderAlignment="22" Expanded="0" />
    <Column ItemIndex="22" InternalName="" Alignment="2" StaticWidth="56" AutoWidth="56" HeaderAlignment="22" Expanded="0" />
    <Column ItemIndex="24" InternalName="" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" Expanded="0" />
    <Column ItemIndex="25" InternalName="" Visible="0" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" OldVisibleIndex="16" Expanded="0" />
    <Column ItemIndex="26" InternalName="" Visible="0" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" OldVisibleIndex="16" Expanded="0" />
    <Column ItemIndex="27" InternalName="" Visible="0" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" OldVisibleIndex="16" Expanded="0" />
    <Column ItemIndex="28" InternalName="" Visible="0" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" OldVisibleIndex="16" Expanded="0" />
    <Column ItemIndex="29" InternalName="" Visible="0" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" OldVisibleIndex="16" Expanded="0" />
    <Column ItemIndex="30" InternalName="" Visible="0" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" OldVisibleIndex="17" Expanded="0" />
    <Column ItemIndex="31" InternalName="" Alignment="2" StaticWidth="48" AutoWidth="48" HeaderAlignment="22" Expanded="0" />
    <Column ItemIndex="32" InternalName="" Visible="0" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" OldVisibleIndex="19" Expanded="0" />
    <Column ItemIndex="33" InternalName="" Visible="0" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" OldVisibleIndex="19" Expanded="0" />
    <Column ItemIndex="34" InternalName="" Visible="0" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" OldVisibleIndex="19" Expanded="0" />
    <Column ItemIndex="35" InternalName="" Visible="0" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" OldVisibleIndex="19" Expanded="0" />
    <Column ItemIndex="36" InternalName="" Visible="0" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" OldVisibleIndex="19" Expanded="0" />
    <Column ItemIndex="37" InternalName="" Visible="0" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" OldVisibleIndex="19" Expanded="0" />
    <Column ItemIndex="38" InternalName="" Visible="0" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" OldVisibleIndex="19" Expanded="0" />
    <Column ItemIndex="39" InternalName="" Visible="0" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" OldVisibleIndex="19" Expanded="0" />
    <Column ItemIndex="40" InternalName="" Visible="0" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" OldVisibleIndex="19" Expanded="0" />
    <Column ItemIndex="41" InternalName="" Visible="0" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" OldVisibleIndex="19" Expanded="0" />
    <Column ItemIndex="42" InternalName="" Visible="0" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" OldVisibleIndex="19" Expanded="0" />
    <Column ItemIndex="43" InternalName="" Visible="0" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" OldVisibleIndex="19" Expanded="0" />
    <Column ItemIndex="44" InternalName="" Visible="0" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" OldVisibleIndex="19" Expanded="0" />
    <Column ItemIndex="45" InternalName="" Visible="0" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" OldVisibleIndex="19" Expanded="0" />
    <Column ItemIndex="46" InternalName="" Visible="0" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" OldVisibleIndex="19" Expanded="0" />
    <Column ItemIndex="47" InternalName="" Visible="0" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" OldVisibleIndex="19" Expanded="0" />
    <Column ItemIndex="48" InternalName="" Visible="0" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" OldVisibleIndex="19" Expanded="0" />
    <Column ItemIndex="49" InternalName="" Visible="0" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" OldVisibleIndex="19" Expanded="0" />
    <Column ItemIndex="50" InternalName="" Visible="0" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" OldVisibleIndex="19" Expanded="0" />
    <Column ItemIndex="51" InternalName="" Visible="0" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" OldVisibleIndex="19" Expanded="0" />
    <Column ItemIndex="52" InternalName="" Visible="0" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" OldVisibleIndex="19" Expanded="0" />
    <Column ItemIndex="53" InternalName="" Visible="0" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" OldVisibleIndex="19" Expanded="0" />
    <Column ItemIndex="54" InternalName="" Visible="0" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" OldVisibleIndex="19" Expanded="0" />
    <Column ItemIndex="55" InternalName="" Visible="0" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" OldVisibleIndex="19" Expanded="0" />
    <Column ItemIndex="56" InternalName="" Visible="0" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" OldVisibleIndex="19" Expanded="0" />
    <GroupsOrder Count="1" Column0="3" InternalName0="" />
    <SortOrder Count="1" Column0="6" InternalName0="" />
  </Columns>
  <Header AutoColumnSizing="0" ShowItemsInGroups="0" />
</PrimaryReport>

Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 17 April 2012 at 1:17pm
Please provide a working sample to reproduce this.
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1201
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Posted: 19 April 2012 at 6:13am
Hi;

Tried to reproduce it in your samples but with no success.
I've to check whether it's a problem in our code or not.
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

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

This page was generated in 0.125 seconds.