//单击单元格获取单元格的内容
 private void dataGridViewX1_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            try
            {
                SelectPowerObjid = this.dataGridViewX1.CurrentRow.Cells["objid"].Value.ToString();
                SelectPowerId = this.dataGridViewX1.CurrentRow.Cells["ID"].Value.ToString();
            }
            catch(Exception ex){
            
            }
      
        }

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-23
  • 2021-11-25
  • 2022-01-05
猜你喜欢
  • 2022-12-23
  • 2021-10-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案