Changing text of a ListView item

  • Thread starter Thread starter Andy Bates
  • Start date Start date
A

Andy Bates

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
 
Hi Andy,

Thanks for posting in this group.
I think you can do like this:
listView1.Items.SubItems[j].Text="whatever you want";

If you have any unclear, please feel free to let me know.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
| From: "Andy Bates" <[email protected]>
| Subject: Changing text of a ListView item
| Date: Mon, 17 Nov 2003 21:42:53 -0000
| Lines: 10
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <[email protected]>
| Newsgroups: microsoft.public.dotnet.languages.csharp
| NNTP-Posting-Host: cpc2-farn1-6-0-cust118.glfd.cable.ntl.com 80.6.33.118
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:199972
| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
|
| 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
|
|
|
 
Back
Top