生龙活虎1986

导航

DataGridView删除多行

foreach (DataGridViewRow r in dgvUpdate.SelectedRows)
            {
                for (int i = 0; i < dgvUpdate.SelectedRows.Count; i++)
                {
                    string datatime = dgvUpdate[10, dgvUpdate.SelectedRows[i].Index].Value.ToString();
                    M.时间 = datatime;
                    MoneycountsBLL.DeleteData(M);
                }
            }

posted on 2009-12-20 12:18  生龙活虎1986  阅读(407)  评论(0编辑  收藏  举报