473,394 Members | 1,702 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,394 software developers and data experts.

ListView - changing the text of subitem n?

ListView - changing the text of subitem n?

All,
How can I change the text of a specific subitem of a specific ListViewItem?
I want to have some "Status" column which I want to continually update based
on the progress of the program.

Thanks
PT
Nov 16 '05 #1
2 6634
Max,

If you have a reference to the ListViewItem.ListViewSubItem instance
that represents the row and column you want, then you should be able to
update the Text property and it will update automatically.

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Max Adams" <ru************@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
ListView - changing the text of subitem n?

All,
How can I change the text of a specific subitem of a specific
ListViewItem?
I want to have some "Status" column which I want to continually update
based
on the progress of the program.

Thanks
PT

Nov 16 '05 #2
Sorted it.
private void AppendItem( ListViewItem item, int nSubItem, string strText )
{
item.SubItems[nSubItem].Text = strText;
return;
}
All,
How can I change the text of a specific subitem of a specific ListViewItem? I want to have some "Status" column which I want to continually update based on the progress of the program.

Nov 16 '05 #3

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

Similar topics

2
by: pablo | last post by:
Dear NGers, I want to keep some images just left of some DIVs. But a change in text size leaves my images at the original position. Which event is generated by changing the text size from the...
55
by: Ton den Hartog | last post by:
Stupid basic question but I find it horribly imposible to find the answer elsewhere... :-( I want to have a piece of text in my HTML page and want to be able to change it in a Javascript...
3
by: Alpha | last post by:
Hello. I am not a C++ programmer...I have studied a bit of Java, but that's it. However, I am playing an online game written in C++. I was wondering how one could change the color of text (that...
1
by: Andy Bates | last post by:
Hi - I need to change the text of a subitem in a listview (in details view), but the text doesn't change; can anyone tell me how to achieve this? TIA - Andy
2
by: Paddy | last post by:
private void listView1_SelectedIndexChanged(object sender, System.EventArgs e) { textBox1.Text = this.listView1.Items.SubItems.Text; } This will display sub item after cklicking on item I...
5
by: Michael C | last post by:
Hi all, I'm looking to determine when the size of a Column is changed in a ListView in detail view. Is there an event i can wire up to? Thanks, Michael C., MCDBA
1
by: Opettaja | last post by:
How would I go about changing text labels on a parent form from a child? For example Changing text labels on Form1 from Form2, and Form2 is opened from Form1? Any suggestions would be greatly...
1
by: Vern | last post by:
I changed the text for a sub-item in a non-databound listview. However, it doesn't change on the display. Here's the code I'm using to change the item: lvPendingErrors.BeginUpdate();...
1
by: =?Utf-8?B?LnBhdWwu?= | last post by:
how do i change the color of the text in the fixedrow (column headers) of a listview? thanks
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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...
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...

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.