无法将类型为“System.Windows.Forms.DataGridViewTextBoxCell”的对象强制转换为类型“DevComponents.DotNetBar.Controls.DataGridViewIntegerInputCell”
错误如上
小弟在dataGridViewX中设置了一列DataGridViewIntegerInputColumn列,不知道如何获取他的值,就采取了如下的转换
Convert.ToInt32(((DataGridViewIntegerInputCell)datagridview.Rows[i].Cells[2]).Value) 就出现了上述错误
还请各位大虾帮忙!
错误如上
小弟在dataGridViewX中设置了一列DataGridViewIntegerInputColumn列,不知道如何获取他的值,就采取了如下的转换
Convert.ToInt32(((DataGridViewIntegerInputCell)datagridview.Rows[i].Cells[2]).Value) 就出现了上述错误
还请各位大虾帮忙!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货