更新时间:2023-02-08 17:34:54
调试看看是什么值为dgr.Cells [2]。值。
Debug and see what is the value of dgr.Cells[2].Value.
好的,这是单元索引问题,它将是细胞[1]而不是细胞[2]。所以它解决了
Ok, it was cell index problem, it would be Cells[1] itstead of Cells[2]. so it is solved
datetime值从datagridview更新到c#中的数据库
如何根据dataGridView中的DateTime值更改单元格颜色?
更新SQL数据库中的datagridview选中的值