Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - Column.index and Column.itemindex
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Column.index and Column.itemindex

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

Joined: 09 June 2006
Status: Offline
Points: 273
Post Options Post Options   Thanks (0) Thanks(0)   Quote joeliner Quote  Post ReplyReply Direct Link To This Post Topic: Column.index and Column.itemindex
    Posted: 14 February 2007 at 8:11am

Hi team,

Where is which applicable? .index and .itemindex in columns

In prior versions i dint have a problem with foot totals of respective columns when the user reorganizes the columns. With current version, i guess from 10.4.1, when you reorganize columns, itemindex order  follows columns order s making totals to show under different columns.

Currently using work around to determine column.caption to draw totals.

Some advice?

thanks
Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post Posted: 14 February 2007 at 4:45pm
ItemIndex is actually an index of a corresponding record item. Record has a constant structure -- some number of items in strict order, and they are always numbered from zero up to some number, and each of them has an associated column. By calling .Record(SomeItemIndex) you can always get a required item.

In the same time column's Index shows only a position of a column in the columns array. It could be changed by drag-n-drop user operation, or somewhere in code... In the same time this column is still associated with a specific record item, with number ItemIndex in record items array.

Hope this description helps a bit.

--
WBR,
Serge
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.109 seconds.