干了什么,就grid.Rows[i].Cells[0].value = "xxxxx"
3种途径 1.在数据库里直接写好,然后读取,绑定 2.从数据库里读取出来之后,循环给后台数据源DataTable赋值,然后绑定 3.直接给DataGridView.Rows[i].Cells[j].value赋值
this.operate.HeaderText = "操作"; this.operate.Name = "operate"; this.operate.DefaultCellStyle.NullValue = "查看"; this.operate.ReadOnly = true;
110,534
社区成员
642,575
社区内容
加载中
让您成为最强悍的C#开发者
试试用AI创作助手写篇文章吧