DataTable transposedTable = GetTransposedTable(dtdata); gdvbdgconsol.DataBind();
protected void gdvbdgconsol_OnRowDataBound(object sender, GridViewRowEventArgs e) { if(e.Row.RowIndex==2) { LinkButton lbt = new LinkButton(); lbt.Text = e.Row.Cells[j].Text; lbt.ID = j.ToString(); //lbt.CommandName = "VIEW"; // lbt.Command += LinkButton_Command; lbt.Click += new EventHandler(lbt_OnClick); e.Row.Cells[j].Controls.Add(lbt); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)