private void tlBtnDelete_Click(object sender, EventArgs e) { if (txtID.Text.Trim() == string.Empty) { MessageBox.Show("删除--躯干数据--失败!", "错误提示!", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } TrunkIntegralDataInfo.id = txtID.Text; //执行删除 int id = baseinfo.DeleteTrunkIntegralData(TrunkIntegralDataInfo); MessageBox.Show("删除--躯干数据--成功!", "成功提示!", MessageBoxButtons.OK, MessageBoxIcon.Information); dgvTrunkIntegralDataList.DataSource = baseinfo.GetAllTrunkIntegralData(" TrunkIntegralData").Tables[0].DefaultView; this.SetdgvTrunkIntegralDataListHeadText(); this.clearText(); }