删除当前行
if (bind_Member.Position < 0) return; bind_Member.RemoveAt(bind_Member.Position);
删除行的访问,核心是通过DataRowVersion.Original访问删除后的行信息
dataTable = bind_Member.DataSource as DataTable; if (dataTable.GetChanges() == null) return; else { this.Text = dataTable.GetChanges().Rows.Count.ToString(); } foreach (DataRow item in dataTable.GetChanges(DataRowState.Deleted).Rows) { this.Text += item[3, DataRowVersion.Original].ToString(); }