示例#1
0
        private void button5_Click(object sender, EventArgs e)
        {
            if (button5.Text == "批量编辑")
            {
                //this.dataGridView1.ReadOnly = false;

                this.dataGridView1.Columns["Column1"].Visible  = true;
                this.dataGridView1.Columns["StName"].ReadOnly  = false;
                this.dataGridView1.Columns["Column1"].ReadOnly = false;

                button5.Text = "保存";

                button1.Enabled = button2.Enabled = button3.Enabled = button4.Enabled = false;
            }
            else if (button5.Text == "保存")
            {
                m_dst.SavetStBundSeq();
                this.dataGridView1.Columns["Column1"].Visible  = false;
                this.dataGridView1.Columns["StName"].ReadOnly  = true;
                this.dataGridView1.Columns["Column1"].ReadOnly = true;
                button5.Text = "批量编辑";
                m_dst.GetSeqbund();
                button1.Enabled = button2.Enabled = button3.Enabled = button4.Enabled = true;
            }
        }