Home     |     .Net Programming    |     cSharp Home    |     Sql Server Home    |     Javascript / Client Side Development     |     Ajax Programming

Ruby on Rails Development     |     Perl Programming     |     C Programming Language     |     C++ Programming     |     IT Jobs

Python Programming Language     |     Laptop Suggestions?    |     TCL Scripting     |     Fortran Programming     |     Scheme Programming Language

Cervo Technologies
The Right Source to Outsource

MS Dynamics CRM 3.0

C# Programming

How to change text of ListViewItem

I have a ListView with 4 columns that shows in details mode.

How do I change the text of one of the columns of a specific item if I
know the index I want to change at?

returns a null reference exception if I attempt to use it.

I am displaying data that changes in real time and needs to have
certain columns update when a separate thread invokes an
UpdateMyColumn(int index, string newText) method on the form.

Should I be using a different control, instead?

ListView listView;

listView.Items[index].SubItems[index1].Text = "your text";

"bthetford" <bran@dodecatec.com> wrote in message


I used to get a nullreferenceexception out of that, as well.
I must have had an off-by-one error.


Add to del.icio.us | Digg this | Stumble it | Powered by Megasolutions Inc