private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
        {

            PackageID = this.dataGridView1["PackageID", this.dataGridView1.CurrentCell.RowIndex].Value.ToString();

            this.txt_PackageName.Text = this.dataGridView1["PackageName", this.dataGridView1.CurrentCell.RowIndex].Value.ToString();
            this.txt_UsePrice.Text = this.dataGridView1["UsePrice", this.dataGridView1.CurrentCell.RowIndex].Value.ToString();
            this.txt_Price.Text = this.dataGridView1["Price", this.dataGridView1.CurrentCell.RowIndex].Value.ToString();
            this.txt_Validity.Text = this.dataGridView1["Validity", this.dataGridView1.CurrentCell.RowIndex].Value.ToString();
            this.comboBox_Category.Text = this.dataGridView1["Category", this.dataGridView1.CurrentCell.RowIndex].Value.ToString();
        }

相关文章:

  • 2021-09-03
  • 2021-07-28
  • 2022-12-23
  • 2022-02-10
  • 2022-12-23
  • 2022-02-04
  • 2022-12-23
  • 2021-09-23
猜你喜欢
  • 2022-12-23
  • 2021-06-28
  • 2021-08-20
  • 2022-12-23
  • 2021-07-04
  • 2022-12-23
  • 2022-01-04
相关资源
相似解决方案