Hi,
In my web application, I am getting record in GridView from DataBase. I want to add LinkButton on ID( ID is a column in Table). What will be the code. plz, help me.
Thanks.
How to add Linkbutton into GridView column in ASP.Net
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Javeed M ShaikhRank #839 · 2.7K reputationPosted Oct 31, 2011, 9:10 AM EDT
add the link button in the template column and in the rowdatabound you can get the row details:
sample snippet...
than in code behind...
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
// check if it a gridview row and datarow
// LinkButton link1 = gridviewrow.FindControl("link1") as LinkButton;
}