Hi,
There are different views of listview control such as Details,LargeIcon,SmallIcon,
List,Tiles .
My problem is that I can store a hidden value in a column when I am using Details view of a Listview.
But can I store a hidden value in listviews other view (LargeIcon,SmallIcon,
List,Tiles) .There are certainly some way.
If any one knows plz do help.
Thank You

Craig MurphyRank #2,956 · 488 reputationPosted Feb 12, 2007, 6:34 AM EST
If I understand your question correctly, then the ability to attach an object of your choice to each listview item might solve the problem.
Here's a small code fragment that uses an object pi to obtain the text of the item to add and the tooltip. It also attaches the object pi to the listview item's Tag property, which lets us recover it again later.
ListViewItem item;
item=lvPercentageItems.Items.Add(pi.itemDesc);
item.ToolTipText = String.Format("Default: {0}%", pi.itemPercentage);
item.Tag = pi;
Retrieving the item is a fairly simple process:
int percentage = lbPercentages.SelectedIndex;
PercentageItem pi = (PercentageItem) lvPercentageItems.SelectedItems[0].Tag;
HTH