:The following exception occurred in the DataGridView

求助:The following exception occurred in the DataGridView在我的电脑上没问题...在客户的电脑上就报错.

求助:The following exception occurred in the DataGridView


在我的电脑上没问题...
在客户的电脑上就报错...
实在不知道怎么回事...




[解决办法]
你的Gridview在数据绑定的时候,绑定的列含有非整数类型的值

[解决办法]
你的这个列不是整数类型

[解决办法]
客户在一列需要Int32类型的列上输入了“7:30-9:30”

[解决办法]
“7:30-9:30”不是整数型的字符串,你偏要转换成整数,当然报错哦