0
如上所述。字符串id是一个NULL值,虽然.Value在我调试时不是NULL。将单元格值传递给字符串C#
string id = dataGridView1[columnindex, rowindex].Value.ToString();
试图通过改变进.Value
到.FormattedValue
的价值传递到ID,但没有工作过。
如上所述。字符串id是一个NULL值,虽然.Value在我调试时不是NULL。将单元格值传递给字符串C#
string id = dataGridView1[columnindex, rowindex].Value.ToString();
试图通过改变进.Value
到.FormattedValue
的价值传递到ID,但没有工作过。
string id = dataGridView1.Rows[rowIndex].Cells[columnIndex].Value.ToString
然后尝试
string id = dataGridView1.Rows[rowIndex].Cells[columnIndex].EditedValueString();
这方面的任何例外? –