Cast the left hand side to type 'string'
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
possible unintended reference comparison to get a value comparison cast the left hand side to type 'string' why this showKnow the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Wim SturkenboomRank #2,527 · 554 reputationPosted Oct 22, 2014, 11:58 PM EDT
if (dataGridView1.SelectedRows[0].Cells["IsSailor"].Value.ToString().Equals("Yes"))
{
}