foreach (GridViewRow row in GridViewSys.Rows) { if (row.RowIndex == GridViewSys.SelectedIndex) { row.BackColor = ColorTranslator.FromHtml("#beddff"); row.ToolTip = String.Empty; String sysName, sysDesc, sysVen, sysReq, sysPO, sysLT, sysSOW, sysSLA, sysComp, sysSQ; sysName = row.Cells[0].Text; sysDesc = row.Cells[1].Text; sysVen = row.Cells[2].Text; sysReq = row.Cells[3].Text; sysPO = row.Cells[4].Text; sysLT = row.Cells[5].Text; sysSOW = row.Cells[6].Text; sysSLA = row.Cells[7].Text; sysComp = row.Cells[8].Text; sysSQ = row.Cells[9].Text; txtSysName.Text = sysName; txtSysDesc.Text = Server.HtmlEncode(sysDesc); txtVendorName.Text = sysVen; txtRequisition.Text = sysReq; txtPO.Text = sysPO; ddlLicenseType.SelectedValue = sysLT; // LinkButtons linkBSOW.Text = sysSOW; linkBSAL.Text = sysSLA; linkBComp.Text = sysComp; linkBSQ.Text = sysSQ; } else { row.BackColor = ColorTranslator.FromHtml("#FFFFFF"); row.ToolTip = "Click to select this row."; }
sysName = row.Cells[0].Text; txtSysName.Text = sysName;
txtSysName.Text = row.Cells[0].Text;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)