且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

删除datagridview的单元格值

更新时间:2023-02-20 16:30:53

让单元格值作为字符串
例如:
int i = 2
cell.value =(i).tostring()

我认为您可以将cell用作字符串进行使用解析
读取值....
If(cell.value.tosting().trim()!=")
Int i = int.Parse(cell.value.tostring())
Let cell value as string
exmple:
int i=2
cell.value= (i).tostring()

i think you may use cell as string a use parsing
to read value ....
If(cell.value.tosting().trim()!="")
Int i = int.Parse(cell.value.tostring())


简单尝试cell.value = null;
必须工作
SIMPLY try cell.value = null;
must work