DataGridView绑定DataTable动态生成列 并且将列名中文显示

方法一:   

DataGridView绑定获取到的DataTable数据,然后根据每一列手动设置列名,如图

DataGridView绑定DataTable动态生成列 并且将列名中文显示

 

方法二:

 在写SQL查询语句的时候,直接在select后边的字段上 AS 想要显示的中文名称即可;如图

DataGridView绑定DataTable动态生成列 并且将列名中文显示

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-21
  • 2021-07-29
  • 2022-02-08
猜你喜欢
  • 2022-12-23
  • 2021-12-31
  • 2022-12-23
  • 2021-09-02
  • 2022-01-26
  • 2022-12-23
  • 2021-07-20
相关资源
相似解决方案