错误:运算符“==”无法应用于“object”和“bool”类型的操作数
// Show the Discontinued label if
// that value is true in the database.
DataRowView drView;
drView = (DataRowView)CurrentBindingSource.Current;
if (drView["Discontinued"] == true)
{
DiscontinuedLabel.Visible = true;
}
else
{
DiscontinuedLabel.Visible = false;
}
----------------------
错误 1 运算符“==”无法应用于“object”和“bool”类型的操作数