Under the guidance of the great god, how to deal with:
String beizhu;
If (the Convert. ToString (dataGridView1. Rows [I] Cells [" bz] Value. The ToString ())!="")
{
Beizhu=dataGridView1. Rows [I] Cells [" bz] Value. The ToString ();
}
The else
{
Beizhu="NULL".
}

CodePudding user response:
String beizhu;
If (dataGridView1. Rows [I] Cells [" bz] the Value!=null & amp; & DataGridView1. Rows [I] Cells [" bz] Value. The ToString ()!="")
{
Beizhu=dataGridView1. Rows [I] Cells [" bz] Value. The ToString ();
}
The else
{
Beizhu="NULL".
}