private void btn_全选_Click(object sender, EventArgs e)

 

        {

 

            dgv_Inventory.EndEdit();

 

            this.dgv_Inventory.ClearSelection();

 

            for (int i = 0; i < this.dgv_Inventory.Rows.Count; i++)

 

            {

 

                this.dgv_Inventory["选择", i].Value = true;

 

            }

 

        }

 

 

 

        private void btn_全取消_Click(object sender, EventArgs e)

 

        {

 

            dgv_Inventory.EndEdit();

 

            this.dgv_Inventory.ClearSelection();

 

            for (int i = 0; i < this.dgv_Inventory.Rows.Count; i++)

 

            {

 

                this.dgv_Inventory["选择", i].Value = false;

 

                dgv_Inventory.Rows[i].Cells["选择"].Value = null;

 

            }

 

        }

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-04
  • 2022-12-23
  • 2022-02-17
  • 2021-07-01
  • 2022-12-23
  • 2021-07-31
猜你喜欢
  • 2022-12-23
  • 2021-12-24
  • 2021-10-02
  • 2022-03-11
  • 2021-08-25
  • 2021-11-09
  • 2022-12-23
相关资源
相似解决方案