index
>
Windows Forms General
> change a cell value in ListView
change a cell value in ListView
How can I change the value of a paticular cell in the ListView control?
Jassim Rahma
Jassim Rahma Wednesday, August 19, 2009 3:22 PM
ListViewItem it = listView1.FindItemWithText("DesireItemValue");
if (Equals(it, null) == false)
{
it.SubItems[1].Text = "NewValue";
}
else
MessageBox.Show("Not Found");
Marked As Answer by
Ling Wang
MSFT
, Moderator
Tuesday, August 25, 2009 1:21 PM
AUmidh Wednesday, August 19, 2009 3:39 PM
ListViewItem it = listView1.FindItemWithText("DesireItemValue");
if (Equals(it, null) == false)
{
it.SubItems[1].Text = "NewValue";
}
else
MessageBox.Show("Not Found");
Marked As Answer by
Ling Wang
MSFT
, Moderator
Tuesday, August 25, 2009 1:21 PM
AUmidh Wednesday, August 19, 2009 3:39 PM
In the previous 1 is the index of your desire column change according to your situation.
AUmidh Wednesday, August 19, 2009 4:11 PM
You can use google to search for other answers
Custom Search
More Threads
Treeview node problem
MouseLeave dilemma
Design specifications for building a Media Center extender
FormClosing closes owned forms
clearing an image in a pictureBox with c#
how do I pass data from form 1 to form 2
gridview validating event
Strange Reference Problems
Help Needed! Debugging a error
MouseLeave event from panel fires for one control within panel but not another control
Home
Copyright 2009-2010 by windowsdevelop.com All rights reserved