how to place single text box in third row second cell in gridview not for all rows
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, 3:42 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;
}
}