且构网

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

datetime值从datagridview更新到c#中的数据库

更新时间: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