示例#1
0
        public void dataGrid_RowValidating(DataGridViewCellCancelEventArgs e)
        {
            if (current_view == null)
            {
                return;
            }

            try
            {
                current_view.dataGrid_RowValidating(e);
            }
            catch (Exception exp)
            {
                MessageBox.Show(main_form,
                                "There is a problem with the new/updated row.\n" +
                                "You may not have permission to do this.\n" +
                                "Press 'ESC' to cancel edit.", "Error");
                throw exp;
            }
        }