protected void GridViewteam_RowCommand(object sender, GridViewCommandEventArgs e) { try { String id = e.CommandArgument.ToString(); if (e.CommandName.Equals("SelectRecord")) { GridViewRow row = (GridViewRow)(((LinkButton)e.CommandSource).NamingContainer); String tcode = row.Cells[1].Text; String tnm = row.Cells[2].Text; String sdesc = row.Cells[3].Text; Label1.Text = sdesc; Label2.Text = tnm; Label3.Text = tcode; } } catch (Exception ex) { throw ex; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)