Beispiel #1
0
        private void btnRemove_Press(object sender, EventArgs e)
        {
            lv    = this.Owner as Smobiler.Core.Controls.ListView;
            lvRow = this.Tag as ListViewRow;
            int rowIndex          = lv.Rows.IndexOf(lvRow);
            demoListViewRemove dl = lv.Owner as demoListViewRemove;

            dl.RemoveNum(rowIndex);

            //也可直接移除本项
            //lv.Rows.Remove(lvRow);
        }