private void btn_del_Click(object sender, EventArgs e) { if (MessageBox.Show("정말 삭제 하시겠습니까?", "삭제경고", MessageBoxButtons.YesNo) == DialogResult.Yes) { int rowIndex = grd_ucost.CurrentRow.Index; cust = grd_ucost.Rows[rowIndex].Cells[0].Value.ToString(); item = grd_ucost.Rows[rowIndex].Cells[1].Value.ToString(); ckQuery = wDm.deletePriceInfo(cust, item); grdLoad(); } else { } }