*** ListView Items on one row - different columns 
Author Message
 *** ListView Items on one row - different columns

Hello everybody,

In the ListView, how can I show more than one field in a row ?? When I use the
following:

lvwSelectedItems.ListItems.Add, , "FieldName"

I get only one string in the row, which is "FieldName". So, how can I make more
than one item appear on one row ??

Thank you so much for your response. You could reply by Email to:


Thanks again.

Elhamy



Sat, 01 Jan 2000 03:00:00 GMT  
 *** ListView Items on one row - different columns

     Set Item = ListView1.ListItems.Add(, , "XXXXXXXX", 1, 1)

            Item.SubItems(1) = "WWWWEEWW"
            Item.SubItems(2) = "PRT0123456"
            Item.SubItems(3) = "RDY"
            Item.SubItems(4) = x
            Item.SubItems(5) = "QPADEV02293"



Sun, 02 Jan 2000 03:00:00 GMT  
 *** ListView Items on one row - different columns


Quote:
> In the ListView, how can I show more than one field in a row ?? When I
> use the following:

> lvwSelectedItems.ListItems.Add, , "FieldName"

VB OnLine Help:
SubItems Property

Take a look at the example provided.

N Varacalli
--
The views expressed herein do not represent the views of my employer.

To reach me via e-mail, try
NICHOLAS_VARACALLI at non-hp-Canada-om1.hp.com



Sun, 02 Jan 2000 03:00:00 GMT  
 *** ListView Items on one row - different columns

Quote:
>In the ListView, how can I show more than one field in a row ?? When I use the
>following:

>lvwSelectedItems.ListItems.Add, , "FieldName"

>I get only one string in the row, which is "FieldName". So, how can I make more
>than one item appear on one row ??

In design mode, add some more columns, then add them at run-time with
the following code:

Dim newNode as ListItem

Set newNode = lvwSelectedItems.ListItems.Add (, , "FieldName")

With newNode
    .SubItems(1) = "I'm a column"
    .SubItems(2) = "So am I"
End With

Regards

Jens



Mon, 03 Jan 2000 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. *** ListView Items on one row - different columns

2. How to align different columns in ListView Items?

3. How to align different columns in ListView Items?

4. How to align different columns in ListView Items?

5. Error creating rows with columns having different column width

6. Listview Control - moving items from one listview to another

7. Different rows on one line CR 4.6 (or vb reporter - VB6)

8. Applying data to different column's in a ListView

9. Populate Listbox, DBlist or Datalist control with several columns in one row with ado

10. VB ListView Control - How to just display column lines - no row lines

11. ListView items with different back color

12. ListView controll: how to hide a column or save the rows record no

 

 
Powered by phpBB® Forum Software