473,408 Members | 1,840 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Listview + Text

Hello.
In listview I have 3 collumns.
How can I read text from 2rd ITEM - 2nd Subitem

Example:
Mark PEter June
HEllo By All
Sony Philips Panasonic

This is listview:
And I want gettext "Philips". I think that it is Item 2 , SubItem 1 .But I
don't know how can I write It.
I think that somethink like this can be:
listview->Items->Item[2]->subitem[1]->text - bud this is bad.
Can anybody help me?
Thanks a lot.
Nov 17 '05 #1
2 1230
I think you are looking for:
CString strText = m_ListViev.GetItemText(2, 1);

"David" <dv*@post.sk> wrote in message
news:eq**************@tk2msftngp13.phx.gbl...
Hello.
In listview I have 3 collumns.
How can I read text from 2rd ITEM - 2nd Subitem

Example:
Mark PEter June
HEllo By All
Sony Philips Panasonic

This is listview:
And I want gettext "Philips". I think that it is Item 2 , SubItem 1 .But I
don't know how can I write It.
I think that somethink like this can be:
listview->Items->Item[2]->subitem[1]->text - bud this is bad.
Can anybody help me?
Thanks a lot.

Nov 17 '05 #2
I can't find getitemtext in Listview
I use listview from NEt. Framework

"Rajko" <ra***@fly.srk.fer.hr> wrote in message
news:c8**********@bagan.srce.hr...
I think you are looking for:
CString strText = m_ListViev.GetItemText(2, 1);

"David" <dv*@post.sk> wrote in message
news:eq**************@tk2msftngp13.phx.gbl...
Hello.
In listview I have 3 collumns.
How can I read text from 2rd ITEM - 2nd Subitem

Example:
Mark PEter June
HEllo By All
Sony Philips Panasonic

This is listview:
And I want gettext "Philips". I think that it is Item 2 , SubItem 1 .But I don't know how can I write It.
I think that somethink like this can be:
listview->Items->Item[2]->subitem[1]->text - bud this is bad.
Can anybody help me?
Thanks a lot.


Nov 17 '05 #3

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

Similar topics

0
by: Mike Barrett | last post by:
I have a strange one here and I believe it is a bug. I googled it and saw others having a similar issue and nobody seems to have a fix. I will take another shot. I get this ERROR MESSAGE... ...
3
by: andrewcw | last post by:
I have a simple winform with the following code. But although I can read back the info, the display fails to provide the text or the cell background color changes. private void ListViewBroke()...
6
by: VM | last post by:
How can I fill up a listview with text file contents? My listview has two columns and the first column fills up with a while loop: while (myString != null) { myString = sr.Readline();...
2
by: Anushya devi | last post by:
Hi All I used listview and tried to update it by using Addrange. When the number of items is less, it works fine.. But I need to update nearly 200,000 items and it hangs. Also i need to add...
3
by: MikeY | last post by:
Hopefully someone can help me on this. I am using C#, making Windows forms. I have created a listView with checkbox's. I have enabled the checkboxes under the properties, and all the data,...
4
by: spowel4 | last post by:
My form has a listview populated with the 50 states. When the user checks the checkbox within the listview for a particular state, I need to retrieve which state was checked (i.e. if AZ is checked...
0
by: Peter | last post by:
Hi, I have a problem with Listview using checkboxes. If i check items by code BEFORE the form is shown the Listview.Items are confused during the ItemChecked Event !!! After showing the...
2
by: Peter | last post by:
Hi, I have a problem with Listview using checkboxes. If i check items by code BEFORE the form is shown the Listview.Items are confused during the ItemChecked Event !!! After showing the...
4
by: Brian Gaze | last post by:
I have created a ListView control and have bound this to a datasource. Within the ItemTemplate of the ListView I have added another ListViewControl which is databound in the code behind. The idea...
7
by: Brad Pears | last post by:
I have something strange going on - pretty sure it used to work before - and now it does not... Why does the following code not clear a combo box? Me.cboLocation.Text = String.Empty OR ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
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
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,...

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.