Last post Feb 20, 2008 09:09 AM by SKT_01
Feb 19, 2008 02:30 PM|lauf88|LINK
I'm currently writing an application on Window CE using C#, 2005. I'm trying to use the ListView object and add data object to the ListViewItem using the Tag property. During the compile time, the compiler throws an error indicated Tag is not a property
in the ListViewItem object.
Does anyone know what did I do wrong?
The followings are the code fragment...
for (int cnt = 0; cnt < 10; cnt++)
string test = "Item " + cnt.ToString();
ListViewItem item1 = new ListViewItem();
item1.Text = test;
item1.ImageIndex = 0;
item1.Tag = cnt.ToString();
Feb 20, 2008 09:09 AM|SKT_01|LINK
the best place for those questions are the forums for Smart Device Development.