c#中怎样动态设置DataGridview的列标题

2024-11-19 10:46:57
推荐回答(1个)
回答1:

修改列标题:
this.dataGridView1.Columns[1].HeaderText = "姓名";
this.dataGridView1.Columns[2].HeaderText = "语文";