private void dgvRunwaysCellClick(object sender, System.Windows.Forms.DataGridViewCellEventArgs e)
        {
            switch (e.ColumnIndex)
            {
            case 8:
                EditSIDsWindow SIDsWindow = new EditSIDsWindow(CurrentAirport.Runways [e.RowIndex]);
                SIDsWindow.ShowDialog( );
                if (SIDsWindow.DialogResult.HasValue && SIDsWindow.DialogResult.Value)
                {
                    CurrentAirport.Runways [e.RowIndex] = SIDsWindow.CurrentRunway;
                    FillDataGridView( );
                }
                break;

            case 9:
                EditSTARsWindow STARsWindow = new EditSTARsWindow(CurrentAirport.Runways [e.RowIndex]);
                STARsWindow.ShowDialog( );
                if (STARsWindow.DialogResult.HasValue && STARsWindow.DialogResult.Value)
                {
                    CurrentAirport.Runways [e.RowIndex] = STARsWindow.CurrentRunway;
                    FillDataGridView( );
                }
                break;

            case 10:
                if (MessageBox.Show(String.Format("Do you really want to delete Runway {0}/{1}?", CurrentAirport.Runways [e.RowIndex].Number, CurrentAirport.Runways [e.RowIndex].ReciprocalNumber), "Delete?", MessageBoxButton.YesNo, MessageBoxImage.Question, MessageBoxResult.No) == MessageBoxResult.Yes)
                {
                    MainWindow.MySector.Runways.Add(CurrentAirport.Runways [e.RowIndex]);
                    CurrentAirport.Runways.RemoveAt(e.RowIndex);
                    dgvRunways.Rows.RemoveAt(e.RowIndex);
                }
                break;
            }
        }
 private void _met_event_click_datagridview(object sender, System.Windows.Forms.DataGridViewCellEventArgs e)
 {
     if (Convert.ToString(_frm_empleados.dgv_empleados.CurrentRow.Cells[0].Value) != "")
     {
         _frm_empleados.txt_rfc.Text = _frm_empleados.dgv_empleados.CurrentRow.Cells[1].Value.ToString();
         _str_data = _frm_empleados.dgv_empleados.CurrentRow.Cells[2].Value.ToString().Split(' ');
         _frm_empleados.txt_nom.Text       = _str_data[0];
         _frm_empleados.txt_ap.Text        = _str_data[1];
         _frm_empleados.txt_am.Text        = _str_data[2];
         _frm_empleados.txt_sex.Text       = _frm_empleados.dgv_empleados.CurrentRow.Cells[3].Value.ToString();
         _frm_empleados.txt_f_na.Text      = _frm_empleados.dgv_empleados.CurrentRow.Cells[4].Value.ToString();
         _frm_empleados.txt_grad_esco.Text = _frm_empleados.dgv_empleados.CurrentRow.Cells[6].Value.ToString();
         _frm_empleados.txt_curp.Text      = _frm_empleados.dgv_empleados.CurrentRow.Cells[7].Value.ToString();
         _frm_empleados.txt_tel.Text       = _frm_empleados.dgv_empleados.CurrentRow.Cells[8].Value.ToString();
         _frm_empleados.txt_email.Text     = _frm_empleados.dgv_empleados.CurrentRow.Cells[9].Value.ToString();
         _frm_empleados.txt_direc.Text     = _frm_empleados.dgv_empleados.CurrentRow.Cells[10].Value.ToString();
         _frm_empleados.txt_ciud.Text      = _frm_empleados.dgv_empleados.CurrentRow.Cells[12].Value.ToString();
         _frm_empleados.txt_est.Text       = _frm_empleados.dgv_empleados.CurrentRow.Cells[11].Value.ToString();
         _frm_empleados.cmb_pues.Text      = _frm_empleados.dgv_empleados.CurrentRow.Cells[13].Value.ToString();
         _frm_empleados.cmb_depa.Text      = _frm_empleados.dgv_empleados.CurrentRow.Cells[14].Value.ToString();
         _frm_empleados.cmb_sucur.Text     = _frm_empleados.dgv_empleados.CurrentRow.Cells[15].Value.ToString();
         _frm_empleados.txt_user.Text      = _frm_empleados.dgv_empleados.CurrentRow.Cells[17].Value.ToString();
         _frm_empleados.txt_pass.Text      = _frm_empleados.dgv_empleados.CurrentRow.Cells[18].Value.ToString();
         _frm_empleados.cmb_est_cli.Text   = _frm_empleados.dgv_empleados.CurrentRow.Cells[19].Value.ToString();
         _met_enable_texbox_button("click_cell");
     }
 }
        protected override void accionBoton(System.Windows.Forms.DataGridViewCellEventArgs e)
        {
            DatosHabitacionModif datosHabitacion = new DatosHabitacionModif(dataGridViewHabitaciones.CurrentRow, usuario);

            Hide();
            datosHabitacion.Show();
        }
        protected override void accionBoton(System.Windows.Forms.DataGridViewCellEventArgs e)
        {
            DatosClienteModif datos = new DatosClienteModif(dataGridViewPersonas.CurrentRow);

            this.Hide();
            datos.Show();
        }
Exemple #5
0
        protected override void accionBoton(System.Windows.Forms.DataGridViewCellEventArgs e)
        {
            BajaHotel bajaHotel = new BajaHotel(Convert.ToInt32(dataGridViewHoteles.Rows[e.RowIndex].Cells["Id_Hotel"].Value));

            Hide();
            bajaHotel.Show();
        }
 private void _met_event_cell_click(object sender, System.Windows.Forms.DataGridViewCellEventArgs e)
 {
     if (Convert.ToString(_frm_list_prod.dgv_list_prod.CurrentRow.Cells[0].Value) != "")
     {
         if (_compras != false)
         {
             _frm_compras.txt_cod_product.Text = _frm_list_prod.dgv_list_prod.CurrentRow.Cells[0].Value.ToString().ToUpper();
             _frm_compras.txt_product.Text     = _frm_list_prod.dgv_list_prod.CurrentRow.Cells[1].Value.ToString().ToUpper();
             _frm_compras.txt_desc_prod.Text   = _frm_list_prod.dgv_list_prod.CurrentRow.Cells[2].Value.ToString().ToUpper();
             _frm_compras.txt_marc_prod.Text   = _frm_list_prod.dgv_list_prod.CurrentRow.Cells[3].Value.ToString().ToUpper();
             _frm_compras.txt_cat_prod.Text    = _frm_list_prod.dgv_list_prod.CurrentRow.Cells[4].Value.ToString().ToUpper();
             _frm_compras.txt_pre_comp.Text    = _frm_list_prod.dgv_list_prod.CurrentRow.Cells[6].Value.ToString().ToUpper();
             _frm_compras.txt_cant.Focus();
             _frm_list_prod.Hide();
         }
         else
         {
             _frm_ventas.txt_cod_product.Text = _frm_list_prod.dgv_list_prod.CurrentRow.Cells[0].Value.ToString().ToUpper();
             _frm_ventas.txt_product.Text     = _frm_list_prod.dgv_list_prod.CurrentRow.Cells[1].Value.ToString().ToUpper();
             _frm_ventas.txt_desc_prod.Text   = _frm_list_prod.dgv_list_prod.CurrentRow.Cells[2].Value.ToString().ToUpper();
             _frm_ventas.txt_marc_prod.Text   = _frm_list_prod.dgv_list_prod.CurrentRow.Cells[3].Value.ToString().ToUpper();
             _frm_ventas.txt_cat_prod.Text    = _frm_list_prod.dgv_list_prod.CurrentRow.Cells[4].Value.ToString().ToUpper();
             _frm_ventas.txt_pre_comp.Text    = _frm_list_prod.dgv_list_prod.CurrentRow.Cells[5].Value.ToString().ToUpper();
             _frm_ventas.txt_cant.Focus();
             _frm_list_prod.Hide();
         }
     }
 }
        private void metroGrid1_CellContentClick(object sender, System.Windows.Forms.DataGridViewCellEventArgs e)
        {
            string index = metroGrid1.SelectedCells[0].Value.ToString();

            Admin.EditUser eu = new Admin.EditUser(index);
            eu.Show();
        }
        private void OrderDataGridView_CellValueChanged(object sender, System.Windows.Forms.DataGridViewCellEventArgs e)
        {
            string value;
            int    newPrice;
            int    totalSumPrice = 0;

            if (e.RowIndex >= -1)
            {
                if (orderDataGridView.RowCount >= 1)
                {
                    for (int i = 0; i < orderDataGridView.Rows.Count; i++)
                    {
                        value          = orderDataGridView.Rows[i].Cells[3].Value.ToString().Replace("تومان", string.Empty).Trim();
                        newPrice       = int.Parse(value.Replace(",", string.Empty).Trim());
                        totalSumPrice += newPrice;
                    }
                    value =
                        $"{totalSumPrice.ToString("#,0")} تومان";
                    totalPrice.Text = value;
                }
                else
                {
                    return;
                }
            }
            else
            {
                return;
            }
        }
Exemple #9
0
        private void optionCellClick(object sender, System.Windows.Forms.DataGridViewCellEventArgs e) // double click
        {
            if (e.RowIndex <= -1 || e.ColumnIndex <= -1)
            {
                return;
            }
            System.Windows.Forms.DataGridViewCell cell = optionsTable.Rows[e.RowIndex].Cells[e.ColumnIndex];
            Console.WriteLine("cella: " + cell);
            string       worker = "";
            string       robot  = "";
            string       key;
            List <Index> indexList = new List <Index>();

            if (cell.Value != null && (cell.Value.ToString() != 0.ToString() || cell.ColumnIndex != 0 || cell.RowIndex != 0))
            {
                worker = optionsTable.Columns[cell.ColumnIndex].HeaderCell.Value.ToString();
                robot  = optionsTable.Rows[cell.RowIndex].HeaderCell.Value.ToString();

                key = robot + "," + worker;
                Console.WriteLine("kattintott: " + key);
                indexList = combinationMap[key].First().Key;

                showSol = new ShowSolution(ref tables, ref indexList, worker, robot);
                showSolList.Add(showSol);
                showSol.Show();
            }
        }
Exemple #10
0
        private void DrinkStoreDataGridView_CellDoubleClick(object sender, System.Windows.Forms.DataGridViewCellEventArgs e)
        {
            if (e.RowIndex == -1)
            {
                return;
            }

            if (e.ColumnIndex == -1)
            {
                return;
            }

            string selectedDrinkName =
                drinkStoreDataGridView.CurrentRow.Cells[0].Value.ToString();
            string drinkImage =
                drinkStoreDataGridView.CurrentRow.Cells[3].Value.ToString();

            Store.DrinkEditeForm drinkEditFrom = new DrinkEditeForm
            {
                MyDrinkStoreForm    = this,
                DrinkName_FirstLoad = selectedDrinkName,
            };

            drinkEditFrom.ShowDialog();
        }
        private void HookahStoreDataGridView_CellDoubleClick(object sender, System.Windows.Forms.DataGridViewCellEventArgs e)
        {
            if (e.RowIndex == -1)
            {
                return;
            }

            if (e.ColumnIndex == -1)
            {
                return;
            }

            string selectedHookahName =
                hookahStoreDataGridView.CurrentRow.Cells[0].Value.ToString();
            string hookahImage =
                hookahStoreDataGridView.CurrentRow.Cells[3].Value.ToString();

            Store.HookahEditFrom hookahEditFrom = new HookahEditFrom
            {
                MyHookahStoreForm    = this,
                HookahName_FirstLoad = selectedHookahName,
            };

            hookahEditFrom.ShowDialog();
        }
        private void dgvFixesCellEndEdit(object sender, System.Windows.Forms.DataGridViewCellEventArgs e)
        {
            switch (e.ColumnIndex)
            {
            case 0:
                FixesList [e.RowIndex].Name = dgvFixes.Rows [e.RowIndex].Cells [e.ColumnIndex].Value.ToString( );
                break;

            case 1:
                FixesList [e.RowIndex].Latitude = Convert.ToInt16(dgvFixes.Rows [e.RowIndex].Cells [e.ColumnIndex].Value);
                break;

            case 2:
                FixesList [e.RowIndex].Longitude = Convert.ToInt16(dgvFixes.Rows [e.RowIndex].Cells [e.ColumnIndex].Value);
                break;

            case 3:
                FixesList [e.RowIndex].Altitude = Convert.ToInt16(dgvFixes.Rows [e.RowIndex].Cells [e.ColumnIndex].Value);
                break;

            case 4:
                FixesList [e.RowIndex].Speed = Convert.ToInt16(dgvFixes.Rows [e.RowIndex].Cells [e.ColumnIndex].Value);
                break;

            case 5:
                FixesList[e.RowIndex].FlyOver = Convert.ToBoolean(dgvFixes.Rows[e.RowIndex].Cells[e.ColumnIndex].Value);
                break;
            }
        }
 private void dgv_proteoform_families_CellContentClick(object sender, System.Windows.Forms.DataGridViewCellEventArgs e)
 {
     if ((cmbx_tableSelector.SelectedIndex == 0 || cmbx_tableSelector.SelectedIndex > 4) && e.RowIndex >= 0)
     {
         display_family_members(e.RowIndex, e.ColumnIndex);
     }
 }
Exemple #14
0
        void dataGridView1_CellClick(object sender, System.Windows.Forms.DataGridViewCellEventArgs e)
        {
            if (Convert.ToString(wgrid.dataGridView1.Columns[e.ColumnIndex].Tag) == "photo")
            {
                int customerPrimaryKeyID = 0;
                if (wgrid.dataGridView1.SelectedRows.Count > 0)
                {
                    string northImg = "";
                    string southImg = "";

                    int.TryParse(Convert.ToString(wgrid.dataGridView1.SelectedRows[0].Cells["CUSTOMER_PK_ID"].Value), out customerPrimaryKeyID);

                    objCustomerDba.GetPhotoPath(customerPrimaryKeyID, out northImg, out southImg);

                    frmShowPhoto showPhoto = new frmShowPhoto();
                    showPhoto.NorthPhotoPath      = northImg;
                    showPhoto.SouthPhotoPath      = southImg;
                    showPhoto.lblCarRegNo.Content = wgrid.dataGridView1.SelectedRows[0].Cells["PLATE NO#"].Value.ToString();
                    showPhoto.BringIntoView();

                    showPhoto.Show();
                }
            }
            else // this else for showing dialog with full details
            {
            }
        }
Exemple #15
0
 private void gridTelaPesquisa_CellDoubleClick(object sender, System.Windows.Forms.DataGridViewCellEventArgs e)
 {
     if (e.RowIndex >= 0)
     {
         this.codigo = Convert.ToInt32(gridTelaPesquisa.Rows[e.RowIndex].Cells[0].Value);
         this.Close();
     }
 }
Exemple #16
0
 private void dgv_TD_proteoforms_CellContentClick(object sender, System.Windows.Forms.DataGridViewCellEventArgs e)
 {
     if (e.RowIndex >= 0)
     {
         TopDownProteoform p = (TopDownProteoform)((DisplayObject)this.dgv_TD_proteoforms.Rows[e.RowIndex].DataBoundItem).display_object;
         get_proteoform_sequence(p);
     }
 }
Exemple #17
0
 private void dgv_RawQuantComp_MI_masses_CellContentClick(object sender, System.Windows.Forms.DataGridViewCellEventArgs e)
 {
     if (e.RowIndex >= 0)
     {
         Component c = ((Component)((DisplayComponent)this.dgv_rawComponents.Rows[e.RowIndex].DataBoundItem).display_object);
         DisplayUtility.FillDataGridView(dgv_chargeStates, c.charge_states.Select(cs => new DisplayChargeState(cs)));
         DisplayChargeState.FormatChargeStateTable(dgv_chargeStates);
     }
 }
Exemple #18
0
        private void GridListado_RowEnter(object sender, System.Windows.Forms.DataGridViewCellEventArgs e)
        {
            if (_listaEmpleados != null && _listaEmpleados.Count > e.RowIndex)
            {
                _empleadoSeleccionado = _listaEmpleados[e.RowIndex];

                RellenarCasillasConEmpleado(_empleadoSeleccionado);
            }
        }
Exemple #19
0
 private void _met_event_click_datgridview(object sender, System.Windows.Forms.DataGridViewCellEventArgs e)
 {
     _frm_sucur.txt_clv.Text      = _frm_sucur.dgv_sucur.CurrentRow.Cells[0].Value.ToString();
     _frm_sucur.txt_nom_sucu.Text = _frm_sucur.dgv_sucur.CurrentRow.Cells[1].Value.ToString();
     _frm_sucur.txt_direc.Text    = _frm_sucur.dgv_sucur.CurrentRow.Cells[2].Value.ToString();
     _frm_sucur.txt_tel.Text      = _frm_sucur.dgv_sucur.CurrentRow.Cells[3].Value.ToString();
     _frm_sucur.cmb_est_sucu.Text = _frm_sucur.dgv_sucur.CurrentRow.Cells[4].Value.ToString();
     _met_enable_button_and_textbox("click_cell");
 }
Exemple #20
0
 private void metroGrid1_CellContentClick(object sender, System.Windows.Forms.DataGridViewCellEventArgs e)
 {
     btnedit.Enabled   = true;
     btndelete.Enabled = true;
     btnsave.Enabled   = false;
     txtname.Text      = metroGrid1.Rows[metroGrid1.CurrentRow.Index].Cells[1].Value.ToString();
     txtlastname.Text  = metroGrid1.Rows[metroGrid1.CurrentRow.Index].Cells[2].Value.ToString();
     cmbgender.Text    = metroGrid1.Rows[metroGrid1.CurrentRow.Index].Cells[3].Value.ToString();
 }
Exemple #21
0
 void dataGridView1_CellValueChanged(object sender, System.Windows.Forms.DataGridViewCellEventArgs e)
 {
     try
     {
         wgrid.dataGridView1.Rows[e.RowIndex].Tag = 1;
     }
     catch (Exception errMsg)
     {
     }
 }
Exemple #22
0
        private void dataGridViewProdutos_CellDoubleClick(object sender, System.Windows.Forms.DataGridViewCellEventArgs e)
        {
            DAL.IDregistro = IDregistro;
            IDregistro     = Convert.ToInt32(dataGridViewProdutos.CurrentRow.Cells[0].Value);

            //Instancia o método SelecionaCampoEditar:
            var SelecionarEditar = new BLL();

            SelecionarEditar.SelecionarEditar(txtProduto, txtCategoria, txtQuantidade, txtID, btnLimpar, btnAtualizar, btnDeletar, btnInserir, dataGridViewProdutos, dataGridViewConsultas);
        }
Exemple #23
0
 private void _met_event_click_datagridview(object sender, System.Windows.Forms.DataGridViewCellEventArgs e)
 {
     if (_frm_cat.dgv_cat.CurrentRow.Cells[0].Value.ToString() != "")
     {
         _frm_cat.txt_clv.Text     = _frm_cat.dgv_cat.CurrentRow.Cells[0].Value.ToString();
         _frm_cat.txt_nom_cat.Text = _frm_cat.dgv_cat.CurrentRow.Cells[1].Value.ToString();
         _frm_cat.txt_discr.Text   = _frm_cat.dgv_cat.CurrentRow.Cells[2].Value.ToString();
         _met_enable_textbox_button("click_cell");
     }
 }
 void dataGridView1_CellClick(object sender, System.Windows.Forms.DataGridViewCellEventArgs e)
 {
     if (Convert.ToString(wgrid.dataGridView1.Columns[e.ColumnIndex].Tag) == "Read")
     {
         wgrid.dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value = !Convert.ToBoolean(wgrid.dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value);
     }
     else if (Convert.ToString(wgrid.dataGridView1.Columns[e.ColumnIndex].Tag) == "Write")
     {
         wgrid.dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value = !Convert.ToBoolean(wgrid.dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value);
     }
 }
        protected override void accionBoton(System.Windows.Forms.DataGridViewCellEventArgs e)
        {
            Cliente cliente = new Cliente(
                dataGridViewPersonas.Rows[e.RowIndex].Cells["Tipo_Documento"].Value.ToString(),
                Convert.ToInt32(dataGridViewPersonas.Rows[e.RowIndex].Cells["Nro_Documento"].Value));

            GenerarReserva generar = new GenerarReserva(reserva, cliente);

            Hide();
            generar.Show();
        }
Exemple #26
0
        private void grdProduto_CellDoubleClick(object sender, System.Windows.Forms.DataGridViewCellEventArgs e)
        {
            if (e.RowIndex > -1 && e.ColumnIndex > -1)
            {
                var            _product      = (Product)grdProduto.Rows[e.RowIndex].DataBoundItem;
                FormCadProduto frmCadProduto = new FormCadProduto(_product);

                frmCadProduto.ShowDialog();

                AtualizaFormulario();
            }
        }
 private void DataGrid_CellClick(object sender, System.Windows.Forms.DataGridViewCellEventArgs e)
 {
     //If select head columns in datagridview return
     if (e.RowIndex < 0)
     {
         return;
     }
     //set values textboxes
     ctrlDepart.Abbrev   = ctrlDepart.DataGrid[1, e.RowIndex].Value.ToString();
     ctrlDepart.FullName = ctrlDepart.DataGrid[2, e.RowIndex].Value.ToString();
     ctrlDepart.Phone    = ctrlDepart.DataGrid[3, e.RowIndex].Value.ToString();
 }
        private void grdEntidade_CellDoubleClick(object sender, System.Windows.Forms.DataGridViewCellEventArgs e)
        {
            if (e.RowIndex > -1 && e.ColumnIndex > -1)
            {
                var _entidade = (Entidade)grdEntidade.Rows[e.RowIndex].DataBoundItem;

                FormCliFornecedor frmCliFornecedor = new FormCliFornecedor(_entidade);
                frmCliFornecedor.ShowDialog();

                AtualizaFormulario();
            }
        }
Exemple #29
0
 private void _met_event_click_cell_datagridview(object sender, System.Windows.Forms.DataGridViewCellEventArgs e)
 {
     if (Convert.ToString(_frm_carg.dgv_puestos.CurrentRow.Cells[0].Value) != "")
     {
         _frm_carg.txt_clave.Text   = _frm_carg.dgv_puestos.CurrentRow.Cells[0].Value.ToString();
         _frm_carg.txt_puesto.Text  = _frm_carg.dgv_puestos.CurrentRow.Cells[1].Value.ToString();
         _frm_carg.txt_descrip.Text = _frm_carg.dgv_puestos.CurrentRow.Cells[2].Value.ToString();
         _frm_carg.txt_salario.Text = _frm_carg.dgv_puestos.CurrentRow.Cells[3].Value.ToString();
         _frm_carg.cmb_esta.Text    = _frm_carg.dgv_puestos.CurrentRow.Cells[4].Value.ToString();
         _met_enable_texbox_button("click_cell");
     }
 }
Exemple #30
0
        void dataGridControl1_CellEndEdit(object sender, System.Windows.Forms.DataGridViewCellEventArgs e)
        {
            object celValue = dataGridViewForCreateTable.CurrentCell.Value;

            if (celValue == null)
            {
                return;
            }
            try
            {
                if ((e.ColumnIndex == 1) && (dataGridViewForCreateTable.CurrentRow.Cells[2].Value == null))
                {
                    string ttt = celValue.ToString();
                    if (ttt == "nvarchar")
                    {
                        dataGridViewForCreateTable.CurrentRow.Cells[1].Value = "nvarchar";
                        dataGridViewForCreateTable.CurrentRow.Cells[2].Value = "100";
                    }
                    if (ttt == "int")
                    {
                        dataGridViewForCreateTable.CurrentRow.Cells[1].Value = "int";
                        dataGridViewForCreateTable.CurrentRow.Cells[2].Value = "8";
                    }
                    if (ttt == "integer")
                    {
                        dataGridViewForCreateTable.CurrentRow.Cells[1].Value = "integer";
                        dataGridViewForCreateTable.CurrentRow.Cells[2].Value = "8";
                    }
                    if (ttt == "smallint")
                    {
                        dataGridViewForCreateTable.CurrentRow.Cells[1].Value = "smallint";
                        dataGridViewForCreateTable.CurrentRow.Cells[2].Value = "4";
                    }

                    if (dataGridViewForCreateTable.CurrentRow.Cells[ColumnName_Unique].Value == null)
                    {
                        dataGridViewForCreateTable.CurrentRow.Cells[ColumnName_Unique].Value = "No";
                    }
                    if (dataGridViewForCreateTable.CurrentRow.Cells[ColumnName_PrimaryKey] == null)
                    {
                        dataGridViewForCreateTable.CurrentRow.Cells[ColumnName_PrimaryKey].Value = "No";
                    }
                    if (dataGridViewForCreateTable.CurrentRow.Cells[ColumnName_AllowNull].Value == null)
                    {
                        dataGridViewForCreateTable.CurrentRow.Cells[ColumnName_AllowNull].Value = "No";
                    }
                }
            }
            catch (Exception ee)
            {
                ProcessException.DisplayErrors(ee);
            }
        }