if (dt.Rows[0]["ClientType"] == "Individual")>>>
Possible unintended reference comparison; to get a value comparison, cast the left hand side to type 'string'>>>
if ((String)(dt.Rows[0]["ClientType"]) == "Individual")>>>
if ((dt.Rows[0]["ClientType"]).ToString() == "Individual")>>>
DataTable dt = new DataTable(); dt.Columns.Add(new DataColumn("ClientType",typeof(string))); dt.Columns.Add(new DataColumn("Employed",typeof(bool))); DataRow r = dt.NewRow(); r["ClientType"] = "StringThing"; r["Employed"] = true; if (((String)r["ClientType"]) == "Fred") { } if (((string)r["ClientType"]) == "StringThing") { } if ((bool)r["Employed"]) { }Hopefully the last line answers your other question .....