473,513 Members | 2,391 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

A listViewItemCollection question

If I double click a header in a list view, I get
....SelectedIndexChanged(...)

My question:

With which code do I determine which column headers in a list view the
users has pressed?

I found plenty of references in MDSN, but I'm afraid I couldn't put
together an answer to my query from it.

Many thanks.
--
Regards,
Patrick.
Nov 15 '05 #1
2 1466

"Patrick De Ridder" <pa***************@hetnet.nl> wrote in message
news:49********************************@4ax.com...
With which code do I determine which column headers in a list view the
users has pressed?


You need to handle the ListView ColumnClick event.

---
Mickey Williams
Author, "Microsoft Visual C# .NET Core Reference", MS Press
www.servergeek.com
Nov 15 '05 #2
On Tue, 02 Sep 2003 22:40:18 +0200, Patrick De Ridder
<pa***************@hetnet.nl> wrote:

Could you please give me a code example, or give me a lead?


I was put off by the line in MacDonald's book (p. 213) that the
current list view does not support the column click event. I have seen
the reference is MSDN now.

--
Regards,
Patrick.
Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
4997
by: Stevey | last post by:
I have the following XML file... <?xml version="1.0"?> <animals> <animal> <name>Tiger</name> <questions> <question index="0">true</question> <question index="1">true</question> </questions>
7
2630
by: nospam | last post by:
Ok, 3rd or is it the 4th time I have asked this question on Partial Types, so, since it seems to me that Partial Types is still in the design or development stages at Microsoft, I am going to ask...
2
2002
by: Piotr Szukalski | last post by:
Hi! I have trouble with 'Contains' method in ListViewItemCollection class - it seems like it nevers calls 'Equals' method of class inherited from ListViewItem... I've found that ListViewItem...
3
3059
by: Ekqvist Marko | last post by:
Hi, I have one Access database table including questions and answers. Now I need to give answer id automatically to questionID column. But I don't know how it is best (fastest) to do? table...
0
1130
by: Chris LaJoie | last post by:
I'm unable to inherit from ListView.ListViewItemCollection because of a compile error. There's nothing in the class, so I can't imagine what it doesn't like about it. public class...
2
1582
by: Zoury | last post by:
Hi Folks! i've made a UserControl that wraps a ListView control (and some others) and i'd like to expose the Items and Columns properties. The problem is that these properties Types are provided...
10
3390
by: glenn | last post by:
I am use to programming in php and the way session and post vars are past from fields on one page through to the post page automatically where I can get to their values easily to write to a...
0
1528
by: Andre Viens | last post by:
Hello, I have a TreeView I'm using to navigate through various options shown in a ListView. I want to use the SelectedNode.Tag property to hold the items in my ListView. Everything is working...
0
1290
by: ThreeNF | last post by:
I guess this is a newbie question, but is there an easy (FAST) way to have the list view toogle between all items, and those items that are only checked? I tried copying the collection off,...
0
7171
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7388
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7545
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7111
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7539
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5692
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3228
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
807
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
461
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.