Highliting an entry in a listview...

B

Brad Pears

I have two listviews side by side that are related. The items in the left
side listview are "parent" items, while the items on the right side are
"child" items. When a user selects a differnt "parent" item on teh left, the
right sode listview is reloaded with the associated "child" rows.

When the user selects the appropriate parent row, the entire row is
highlited in the listview as I have "full row select" turned on. However,
when the user clicks into the "child" listview to add or delete rows etc...,
that highlite now disappears... is there a way to keep the selected row
from the left hand listview highlited perhaps when the focus has been lost
from that control? This way the user will know exactly what parent row thay
are working with...

Thanks, Brad
 
I

Inictus

I have two listviews side by side that are related. The items in the left
side listview are "parent" items, while the items on the right side are
"child" items. When a user selects a differnt "parent" item on teh left, the
right sode listview is reloaded with the associated "child" rows.

When the user selects the appropriate parent row, the entire row is
highlited in the listview as I have "full row select" turned on. However,
when the user clicks into the "child" listview to add or delete rows etc....,
that highlite now disappears...  is there a way to keep the selected row
from the left hand listview highlited perhaps when the focus has been lost
from that control? This way the user will know exactly what parent row thay
are working with...

Thanks, Brad

Set the ListView's HideSelection property to False
 
B

Brad Pears

That was way too easy!!!!

I was thinking I was going to have to set/reset listview item background
colours etc...

A quick question though...the item remains selected but the background is a
light gray... Any way to change that to a different colour all so it stands
out a bit better?

Thanks, Brad

I have two listviews side by side that are related. The items in the left
side listview are "parent" items, while the items on the right side are
"child" items. When a user selects a differnt "parent" item on teh left,
the
right sode listview is reloaded with the associated "child" rows.

When the user selects the appropriate parent row, the entire row is
highlited in the listview as I have "full row select" turned on. However,
when the user clicks into the "child" listview to add or delete rows
etc...,
that highlite now disappears... is there a way to keep the selected row
from the left hand listview highlited perhaps when the focus has been lost
from that control? This way the user will know exactly what parent row
thay
are working with...

Thanks, Brad

Set the ListView's HideSelection property to False
 
L

Lloyd Sheen

Brad Pears said:
That was way too easy!!!!

I was thinking I was going to have to set/reset listview item background
colours etc...

A quick question though...the item remains selected but the background is
a light gray... Any way to change that to a different colour all so it
stands out a bit better?

Thanks, Brad



Set the ListView's HideSelection property to False

If you are on Vista this is a problem. You would have to turn off Aero to
make this visible. Just another feature of Vista.

LS
 
B

Brad Pears

Vista is just packed with features isn't it? :)

Lloyd Sheen said:
If you are on Vista this is a problem. You would have to turn off Aero to
make this visible. Just another feature of Vista.

LS
 
K

kimiraikkonen

If you are on Vista this is a problem.  You would have to turn off Aero to
make this visible.  Just another feature of Vista.

LS- Hide quoted text -

- Show quoted text -

Not tested, but also chaning Vista OS theme may also help.
 
L

Lloyd Sheen

If you are on Vista this is a problem. You would have to turn off Aero to
make this visible. Just another feature of Vista.

LS- Hide quoted text -

- Show quoted text -

Not tested, but also chaning Vista OS theme may also help.

That does not work. Already tried. Perhaps you could change the background
of the selected listviewitem but that would mean you would have to restore
all non selected listviewitems to the default background color.

LS
 
C

Cor Ligthert[MVP]

Brad,

For the use as you described the treeview and the listview are created.

As you are looking not to Outlook express (or an other Microsoft solution
like that) or the also Windows Explorer in its classic view (which I forever
use to avoid loosing information), then you see how that works.

However it is true, that I don't like views in only image views, but I had
not the idea you where using that.

Cor
 
C

Cor Ligthert[MVP]

Typo

As you are looking not to Outlook ................

has to be

As you are looking now to Outlook ................
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top