protected void fillRespQuoteGrid() { DataTable dt = new DataTable(); dt.Columns.Add("RespCompId"); dt.Columns.Add("VendName"); dt.Columns.Add("quote"); dt.Columns.Add("NDA"); dt.Columns.Add("DateVal"); dt.Columns.Add("comm"); dt.Columns.Add("TotalAmnt"); dt.Columns.Add("DealReq"); ArrayList shortListedList = RFQShortlisted. getAllShortListedEntriesbyRFQId(Session[SessionFactory.ALL_PURCHASE_ALL_RFQ_SELECTED_RFQ_ID].ToString()); DateUtility dU = new DateUtility(); for (int i = 0; i < shortListedList.Count; i++) { RFQShortlisted shortObj = (RFQShortlisted)shortListedList[i]; dt.Rows.Add(); dt.Rows[i]["RespCompId"] = shortObj.getRespEntityId(); dt.Rows[i]["VendName"] = MainBusinessEntity.getMainBusinessEntitybyIdwithLessDetailsDB(shortObj.getRespEntityId()).getEntityName(); dt.Rows[i]["DateVal"] = dU.getConvertedDate(shortObj.getCreatedDate()); dt.Rows[i]["TotalAmnt"] = shortObj.getPotenAmnt(); dt.Rows[i]["DealReq"] = shortObj.getFinlSupFlag(); } GridView_RFQ_Resp_Quotes.DataSource = dt; GridView_RFQ_Resp_Quotes.DataBind(); GridView_RFQ_Resp_Quotes.Columns[1].Visible = false; //Find out the selected entity if any RFQShortlisted selectedPotObj = RFQShortlisted. getRFQShortlistedEntryforFinalizedVendor(Session[SessionFactory.ALL_PURCHASE_ALL_RFQ_SELECTED_RFQ_ID].ToString()); Session[SessionFactory.ALL_PURCHASE_ALL_RFQ_SHORLISTED_FINALIZED_POTEN] = selectedPotObj.getPotentialId(); foreach (GridViewRow gVR in GridView_RFQ_Resp_Quotes.Rows) { if (((Label)gVR.Cells[0].FindControl("Label_Hidden")).Text.Equals(selectedPotObj.getRespEntityId())) { ((System.Web.UI.WebControls.Image)gVR.Cells[0].FindControl("Image_Selected")).Visible = true; } } }