JYYJ

int index = DataGridView1.CurrentRow.Index;    //取得选中行的索引  

txt_ProductId.Text = DataGridView1.Rows[index].Cells["Id"].Value;   //获取单元格列名为‘Id’的值 

 

分类:

技术点:

相关文章:

  • 2021-11-14
  • 2021-11-14
  • 2021-11-14
  • 2021-11-14
  • 2021-11-14
  • 2021-11-14
  • 2021-11-14
  • 2021-11-14
猜你喜欢
  • 2021-09-20
  • 2021-09-20
  • 2021-11-14
  • 2021-11-14
  • 2021-09-20
  • 2021-09-20
  • 2021-09-20
相关资源
相似解决方案