Best way to store data about data in a table cell

General TRichView support forum. Please post your questions here
Post Reply
JLuckey
Posts: 12
Joined: Thu Feb 23, 2006 12:22 am

Best way to store data about data in a table cell

Post by JLuckey »

I need to store data about the source of the data displayed in a cell in a table in a TRichView. The source data is actually the key to the record which retrieved the data displayed in the cell and is a string that looks like this:
"keyvalue1|keyvalue2|keyvalue3"

I need to be able to retrieve that key for each cell in the table in the RichView.

So my question is, where should I store that key string? In the Tag for that cell or should I create an invisible cell in each row and store it there? Or somewhere else?

Is there some example code that does something similar?

Thanks
Sergey Tkachenko
Site Admin
Posts: 17555
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Unfortunately, cells do not have tags or any other property allowing to store arbitrary user data.
Well, if you do not need to use file names of background cell images, you can store your data in Cell.BackgroundImageFileName property.
If you decide to do it, make sure that you do not include rvsoUseItemImageFileNames in the Options parameter of SaveHTML/SaveHTMLEx.
If you use RichViewActions, make sure that TrvActionTableProperties.StoreImageFileName=False.
Post Reply