且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

仅将值添加到DataGridView C#中的一列

更新时间:2022-12-12 09:36:03

我终于解决了我的问题,使用这段代码:



I finally solved my problem, using this code:

dataGridView1[2, 0].Value = "7:00 - 7:50";<br />
           dataGridView1[2, 1].Value = "7:50 - 8:40";<br />
           dataGridView1[2, 2].Value = "8:40 - 9:30";<br />
           dataGridView1[2, 3].Value = "10:00 - 10:50";<br />
           dataGridView1[2, 4].Value = "10:50 - 11:40";<br />
           dataGridView1[2, 5].Value = "11:50 - 12:40";<br />
           dataGridView1[2, 6].Value = "12:40 - 1:30";<br />





它类似于坐标平面,第一个数字引用列数,第二个数字引用我想要修改的单元格。现在我有一个更大的问题,关于同一个项目,我会在一分钟后发布。请帮助我,我试着解决它四个小时。



It is similar to the coordinate plane, the first number references the number of column, and the second number references the cell that I want to modify. Now I have a bigger problem, about the same project, I'll post it in a minute. Please Help me with that one, I'm trying to solve it since four hours.