private void newButton_Click(object sender, EventArgs e)
        {
            dataRegionDetail displayedForm = new dataRegionDetail(globalConstants.NEW_REGION, 0);

            displayedForm.ShowDialog(this);
            dataCabangGridView.DataSource = null;

            if (!namaBranchTextbox.Text.Equals(""))
            {
                loadRegionData(namaBranchTextbox.Text);
            }
        }
        private void dataCabangGridView_DoubleClick(object sender, EventArgs e)
        {
            int selectedrowindex = dataCabangGridView.SelectedCells[0].RowIndex;

            DataGridViewRow selectedRow = dataCabangGridView.Rows[selectedrowindex];

            selectedRegionID = Convert.ToInt32(selectedRow.Cells["ID"].Value);

            dataRegionDetail displayedForm = new dataRegionDetail(globalConstants.EDIT_REGION, selectedRegionID);

            displayedForm.ShowDialog(this);
        }
        private void dataCabangGridView_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Enter)
            {
                int selectedrowindex = dataCabangGridView.SelectedCells[0].RowIndex;

                DataGridViewRow selectedRow = dataCabangGridView.Rows[selectedrowindex];
                selectedRegionID = Convert.ToInt32(selectedRow.Cells["ID"].Value);

                gutil.saveSystemDebugLog(0, "CREATE DATA REGION DETAIL, REGION ID [" + selectedRegionID + "]");
                dataRegionDetail displayedForm = new dataRegionDetail(globalConstants.EDIT_REGION, selectedRegionID);
                displayedForm.ShowDialog(this);
            }
        }