下面的代码限制了5个DataGridView第2列只能输入数字,但只要触发了限制,第1列也会被限制了,除了输入数字不能输入其他的,大神们帮看看哪里出问题了 If e.KeyChar <> Chr(8) And e.KeyChar <> Chr(13) And (e.KeyChar < Chr(48) Or e.KeyChar > Chr(57)) Then ...
Could it be erroring out because of the custom columns you are trying to add to it?<BR><BR>I don't know the answer off the top of my head, but you could do something as simple as DataGridView1 = new ...