0
我想更新列表視圖中包含自己ListviewItem中包含的數據。 這個想法是,當選中一行列表視圖時,我點擊一個按鈕並更新數據。更新列表視圖中ListViewItem中的子項目的值c#(Winforms)
我有這樣的代碼:
ListView listView1 = new System.Windows.Forms.ListView();
ListViewItem lv1 = new ListViewItem("me");
lv1.SubItems.Add("my brother");
listView1.Items.Add(lv1);
Button myB = new System.Windows.Forms.Button();
private void myB_Click(object sender, EventArgs e)
{
listView1.SelectedItems[0] ....... ;
}
我知道如何去任何進一步的存取權限修改「我的兄弟」的值設置爲「我的妹妹」。
在此先感謝。
你是我的快速回答hero.Thanks。 – lemoos 2012-04-16 22:36:54