protected void GridViewSearchResults_SelectedIndexChanged(object sender, EventArgs e) { BearCode bearCode = new BearCode(); LabelSelectedMessage.Text = "Selected Row ID: " + GridViewSearchResults.SelectedRow.Cells[columnID].Text + " "; LabelMatterLabel.Text = "Matter:"; LabelMatter.Text = bearCode.GetMatterDesc1( ((TextBox)GridViewSearchResults.SelectedRow.FindControl("matterTB")).Text , VariablesCAS.ERROR_LOG_FILE_NAME); LabelTimekeeperLabel.Text = "Timekeeper:"; LabelTimekeeper.Text = bearCode.GetTimekeeperInfo( ((TextBox)GridViewSearchResults.SelectedRow.FindControl("timekeepTB")).Text , "fullNameWithTkid" , VariablesCAS.ERROR_LOG_FILE_NAME); LabelCostCodeLabel.Text = "CostCode:"; LabelCostCode.Text = utility.GetCostCodeDescription( ((TextBox)GridViewSearchResults.SelectedRow.FindControl("costcodeTB")).Text.Replace("'", "''")); ImageButtonDelete.ImageUrl = "~/images/controls/trash.gif"; ImageButtonDetails.ImageUrl = "~/images/controls/magnifier.png"; ImageButtonSearchMatterPanel.ImageUrl = "~/images/controls/search.gif"; ImageButtonSearchTimekeeperPanel.ImageUrl = "~/images/controls/search.gif"; ImageButtonSelectCostCodePanel.ImageUrl = "~/images/controls/search.gif"; LinkButtonCloseSelected.Text = "X"; if (Session["BulkUpdate"] != null) { if (Session["BulkUpdate"].ToString().Equals("On")) { ImageButtonBulkUpdate.ImageUrl = "~/images/controls/bulk.gif"; ImageButtonBulkUpdate.ToolTip = "Display Bulk Update View"; blankSpan.InnerHtml = " "; } else { ImageButtonBulkUpdate.ImageUrl = "~/images/controls/smallwhitedot.gif"; ImageButtonBulkUpdate.ToolTip = ""; blankSpan.InnerHtml = ""; } } Session["MatterTBClientName"] = ((TextBox)GridViewSearchResults.SelectedRow.FindControl("matterTB")).ClientID.ToString(); Session["TimekeeperTBClientName"] = ((TextBox)GridViewSearchResults.SelectedRow.FindControl("timekeepTB")).ClientID.ToString(); Session["CostCodeTBClientName"] = ((TextBox)GridViewSearchResults.SelectedRow.FindControl("costcodeTB")).ClientID.ToString(); if (Session["rowSelected"] != null) { if (!Session["rowSelected"].ToString().Equals( GridViewSearchResults.SelectedRow.RowIndex.ToString() )) { HideAllPanels(true); } } }