![]() |
Tag Property for a Record Item |
Post Reply ![]() |
Author | |
jcollier ![]() Senior Member ![]() Joined: 15 February 2006 Status: Offline Points: 250 |
![]() ![]() ![]() ![]() ![]() Posted: 14 June 2006 at 2:23pm |
Is there any way to store info about a particular Item? For example, I want to replace a vbAccelerator grid with the Report Control. In the grid I am using now, I can store the primary key for a customer name, employee name, etc in a property called .CellItemData. If I have a grid that has both customer name and employee name columns, I can store CellItemData for both in each cell. If I can recreate that functionality, I can use the Report Control.
Thanks! |
|
![]() |
|
sserge ![]() Moderator Group ![]() Joined: 01 December 2004 Status: Offline Points: 1297 |
![]() ![]() ![]() ![]() ![]() |
Hi,
ReportRecord has a property Tag where you can store your custom information for a record. There are no similar property for ReportRecordItem, but we can add it for next versions if you think it would be useful. However, you can use some workarounds for that purpose: 1) you can have an array of keys, and assign it to Record.Tag property, then read a key by a correcponding Item index.
2) You can add any number of Items to the Record, which will be never visible, and store your custom information as their .Value property. Then you can access it like Record(ItemIndex + BaseItemsNumber).Value -- WBR, Serge |
|
![]() |
|
jcollier ![]() Senior Member ![]() Joined: 15 February 2006 Status: Offline Points: 250 |
![]() ![]() ![]() ![]() ![]() |
sserge,
Thanks for the info. I definitely think it would be useful to be able to just say Item.Tag and then retrieve that info just as we would Item.Value. It may also be helpful if we could do something like: RC.Item(RowID, ColumnID).Tag In place of RowID it would also be helpful to be able to code: RC.Item(RC.SelectedRow, ColumnID).Tag Thanks! |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |