コード例 #1
0
        private void grdDictionaries_UserDeletingRow(object sender, DataGridViewRowCancelEventArgs e)
        {
            if (MessageBox.Show("Are you sure you want to delete current row?", Text, MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No)
            {
                e.Cancel = true;
                return;
            }

            string _code = e.Row.Cells["ID"].Value.ToString();

            if (!m_localizer.DeleteRecordItem(_code))
            {
                MessageBox.Show(m_localizer.ErrorString);
                return;
            }

            webBrowser.Refresh();
        }