Column.index and Column.itemindex
Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=6415
Printed Date: 09 November 2024 at 7:27pm Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com
Topic: Column.index and Column.itemindex
Posted By: joeliner
Subject: Column.index and Column.itemindex
Date 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
|
Replies:
Posted By: sserge
Date 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
|
|