如何使用 Option Strict On 测试 DataGridViewCell.Value?
If DataGridViewCell.Value = "some value" then
给出错误:
Option Strict On disallows operands of type Object for operator '='. Use the 'Is' operator to test for object identity.
编辑:
解决方案是:
If DataGridViewCell.Value.ToString = "some value" then