ListView & ItemData 
Author Message
 ListView & ItemData

Hello,

Does the listview control has an itemdata (like the grid) ? I need to store
additional data.

Thank you!!!!



Sat, 22 Jan 2005 03:55:58 GMT  
 ListView & ItemData
Assuming that you want to create a piece of info for each item in the
listview, use the tag property of each listitem.


Quote:
> Hello,

> Does the listview control has an itemdata (like the grid) ? I need to
store
> additional data.

> Thank you!!!!



Sat, 22 Jan 2005 05:06:26 GMT  
 ListView & ItemData
Hi,

See the ListItem object's Key property.
It is actually a string that you can store pretty much anything in.  It has
the limitation that the value stored cannot begin with a number though.
I use it to store KeyIndex fields in (dbLong AutoInc), while prepending as
"KEY" & CStr(<keyindex>).

David
lilchips.com


Quote:
> Hello,

> Does the listview control has an itemdata (like the grid) ? I need to
store
> additional data.

> Thank you!!!!



Sat, 22 Jan 2005 05:22:33 GMT  
 ListView & ItemData
Hi,

The Key property is actually the collection member unique identifier,
although I guess the Tag would work also.

David
lilchips.com


Quote:
> Assuming that you want to create a piece of info for each item in the
> listview, use the tag property of each listitem.



> > Hello,

> > Does the listview control has an itemdata (like the grid) ? I need to
> store
> > additional data.

> > Thank you!!!!



Sat, 22 Jan 2005 05:26:02 GMT  
 ListView & ItemData
I personally prefer to use the tag since it can be anything, class, string
etc.


Quote:
> Hi,

> The Key property is actually the collection member unique identifier,
> although I guess the Tag would work also.

> David
> lilchips.com



> > Assuming that you want to create a piece of info for each item in the
> > listview, use the tag property of each listitem.



> > > Hello,

> > > Does the listview control has an itemdata (like the grid) ? I need to
> > store
> > > additional data.

> > > Thank you!!!!



Sat, 22 Jan 2005 08:38:57 GMT  
 ListView & ItemData
depending on the .View of the listview you could use SubItems
and as long as you're not viewing ReportView then they'll not
be visible.

D.

| I personally prefer to use the tag since it can be anything, class, string
| etc.
|
|


| > Hi,
| >
| > The Key property is actually the collection member unique identifier,
| > although I guess the Tag would work also.
| >
| > David
| > lilchips.com
| >
| >


| > > Assuming that you want to create a piece of info for each item in the
| > > listview, use the tag property of each listitem.
| > >
| > >


| > > > Hello,
| > > >
| > > > Does the listview control has an itemdata (like the grid) ? I need to
| > > store
| > > > additional data.
| > > >
| > > > Thank you!!!!
| > > >
| > > >
| > >
| > >
| >
| >
|
|



Sat, 22 Jan 2005 10:12:15 GMT  
 
 [ 6 post ] 

 Relevant Pages 

1. ItemData property replacement for ListView

2. *&*&*&* Date math question *&*&*&*

3. &#12493;&#12483;&#12488;&#12466;&#12540;&#12512; &#12458;&#12475;&#12525;, &#12452;&#12531;&#12479;&#12540;&#12493;&#12483;&#12488;&#12398;&#12362;&#37329;&#12434;&#31292;&#12368;, &#12458;&#12531;&#12521;&#12452;&#12531;&#12466;&#12540;&#12512;&#123

4. treeview & listview, slow directory listing

5. ListView & Cursor

6. ListView & CheckBoxes

7. ListView & SubItems

8. Drag&Drop from ListView

9. Listview & ADO question

10. ListView event SelectedIndexChanged & SelectedIndices.Count

11. ListView & WWW

12. Recordset & Listview

 

 
Powered by phpBB® Forum Software