dataGridView1 报DataError 错误 解决办法

来源:互联网 发布:python url发送 编辑:程序博客网 时间:2024/05/01 10:55

 在InitializeComponent方法里加上

this.dataGridView1.DataError += delegate(object sender, System.Windows.Forms.DataGridViewDataErrorEventArgs e) { };//加上否则报错