DataGridView绑定数据源时,会自动显示未绑定的列,怎么让其不显示未绑定的列呢?

设置AutoGenerateColumns属性即可

this.dataGridView1.AutoGenerateColumns = false;

ok

相关文章:

  • 2021-05-21
  • 2021-12-31
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-24
  • 2022-12-23
  • 2022-01-30
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-04
  • 2018-06-21
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案