If e.DataCol.Name = "产品图号" Then
If e.NewValue = Nothing Then
e.DataRow("有图否") = False
Else
e.DataRow("有图否") = True
End If
End If
If e.DataCol.Name = "有图否" AndAlso e.DataRow("有图否") = True Then
If e.DataRow.IsNull("产品图号") Then
e.DataRow("产品图号") = "SMP" & Format(e.DataRow("_Identify"), "000000")
End If
End If