Place Text Box inside GridView in one Cell only but not total column?
any one give me answer Please?
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Suthish NairPosted Mar 26, 2011, 4:14 PM
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;
}
}
Abhimanyu K VatsaPosted Mar 26, 2011, 10:15 AM
http://www.asp.net/data-access/tutorials/using-templatefields-in-the-gridview-control-vb