this.dataGrid1.CurrentCell=new DataGridCell(0,0);
this.dataGrid1[0,0]=1;
我这样写他会出现
未处理的“System.ArgumentException”类型的异常出现在 system.windows.forms.dll 中。我应该怎么办?我是想给单元格直接赋值