[csharp] view plaincopy
 
  1. //假设dgv是一个DataGridView。  
  2. //我要点击第3行的第二个cell。  
  3. //当然,要有一个点击事件。假设dgv_CellClick是那个点击事件。  
  4. dgv_CellClick(dgv, new DataGridViewCellEventArgs(1, 2))  
  5. //重要的是在DataGridViewCellEventArgs,   
  6. //第一个参数是第几列的意思,第二个参数是第几行的意思。  
  7. //所有的参数是以0开始的。 

相关文章:

  • 2022-12-23
  • 2021-12-02
  • 2022-12-23
  • 2022-01-20
  • 2021-08-16
  • 2021-12-25
  • 2021-07-20
  • 2021-06-30
猜你喜欢
  • 2022-01-30
  • 2021-12-03
  • 2021-12-19
  • 2022-12-23
  • 2022-01-18
  • 2022-03-08
相关资源
相似解决方案