先需要重写一个方法:
C#:

在 winform 中 DataGrid 中实现点击任一单元格都选中当前行    internal class DataGridNoActiveCellColumn : System.Windows.Forms.DataGridTextBoxColumn
    }

vb.net :
End Class

设置datagrid样式:

End Sub

相关文章:

  • 2022-01-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-22
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-02-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-02
  • 2022-12-23
相关资源
相似解决方案