示例#1
0
        private void PostingGridEnter()
        {
            if (MessageBox.Show(dataGridView2[2, dataGridView2.SelectedRows[0].Index].Value.ToString() + " が選択されました。よろしいですか?", "登録確認", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No)
            {
                return;
            }

            int iX = 0;

            txtAreaID.Text     = dataGridView2[1, dataGridView2.SelectedRows[iX].Index].Value.ToString();
            txtAreaName.Text   = dataGridView2[2, dataGridView2.SelectedRows[iX].Index].Value.ToString();
            txtHaihuMaisu.Text = dataGridView2[3, dataGridView2.SelectedRows[iX].Index].Value.ToString();

            aMode.Mode      = 1;
            aMode.RowIndex  = dataGridView2.SelectedRows[iX].Index;
            txtAdel.Enabled = true;

            //配布エリアデータを取得
            GridviewSet.GetPostingData(Int32.Parse(dataGridView2[0, dataGridView2.SelectedRows[iX].Index].Value.ToString()), ref cArea);

            //エリアIDコード
            txtAreaID.Focus();
        }