By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,084 Members | 1,255 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,084 IT Pros & Developers. It's quick & easy.

Keeping the row selected in listview

P: n/a
Hi all,

I have a listview and a textbox. when I select a row in the listview I want
to be able to click on the textbox and type in some details. This obviously
works fine - however when I click on the textbox the selected row in the
listview loses it's selection (the usual windows blue vanishes - as if no row
was selected) is there any way to keep the highlight "lit" in a listview
when working with other controls on a form?

Thanks in advance to anyone that can help me out here

Niels
Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hi Niels,
There's a property on the listview "HideSelection" set it to false and you
will get a gray color on the selected row

HTH
/Kejpa

"Niels Jensen" <Ni*********@discussions.microsoft.com> wrote in message
news:AD**********************************@microsof t.com...
Hi all,

I have a listview and a textbox. when I select a row in the listview I want to be able to click on the textbox and type in some details. This obviously works fine - however when I click on the textbox the selected row in the
listview loses it's selection (the usual windows blue vanishes - as if no row was selected) is there any way to keep the highlight "lit" in a listview
when working with other controls on a form?

Thanks in advance to anyone that can help me out here

Niels

Nov 21 '05 #2

P: n/a
Cool,

Simple when you know how :)

Thanks Kejpa

Niels

"Kejpa" wrote:
Hi Niels,
There's a property on the listview "HideSelection" set it to false and you
will get a gray color on the selected row

HTH
/Kejpa

"Niels Jensen" <Ni*********@discussions.microsoft.com> wrote in message
news:AD**********************************@microsof t.com...
Hi all,

I have a listview and a textbox. when I select a row in the listview I

want
to be able to click on the textbox and type in some details. This

obviously
works fine - however when I click on the textbox the selected row in the
listview loses it's selection (the usual windows blue vanishes - as if no

row
was selected) is there any way to keep the highlight "lit" in a listview
when working with other controls on a form?

Thanks in advance to anyone that can help me out here

Niels


Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.