Posted on: 1/3/2014 9:26:03 PM | Views : 645

I need help with comparison and looping through a DataTable.  The codes are in my Gridview, where I am checking to see if I need to make the checkbox visible or not....

code behind
DataTable dt = Session["ProductTable"] as DataTable; DataView dv = new DataView(dt); Label lblDBO_ID = e.Row.FindControl("lblDBO_ID") as Label;
foreach (DataRow row in dt.Rows) {     if (lblDBO_ID.Text == row["DBO_PRODUCT_ID"])  <--- I am having trouble with checking for equality!      {         if (row["APPROVAL_STATUS"] == "Y") <---- working fine ...

Go to the complete details ...