GridView里FocusedRowHandle会设置最左侧小三角的位置,而SelectRow会设置反选的行。

要设置新的选择行时,要先执行UnselectRow(0),不然总默认反选第1行。

gridView1.UnselectRow(0);
gridView1.FocusedRowHandle = firstIndex;
gridView1.SelectRow(firstIndex);

 

相关文章:

  • 2021-06-22
  • 2021-11-11
  • 2022-12-23
  • 2022-12-23
  • 2021-11-05
  • 2021-03-31
  • 2021-05-10
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-27
  • 2022-12-23
相关资源
相似解决方案