Place Text Box inside GridView in one Cell only but not total column?
any one give me answer Please?
Place Control inside the gridview
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend3days leftRegister
Abhimanyu K VatsaRank #14 · 51.7K reputationPosted Mar 26, 2011, 6:15 AM EDT
http://www.asp.net/data-access/tutorials/using-templatefields-in-the-gridview-control-vb
Suthish NairRank #92 · 22.8K reputationPosted Mar 26, 2011, 12:14 PM EDT
example:
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
HyperLink tmplnk1 = new HyperLink();
tmplnk1 = (HyperLink)e.Row.Cells[1].FindControl("hyplnk1");
if (e.Row.DataItemIndex != 3)
{
tmplnk1.Visible = false;
}
tmplnk1 = null;
}
}