How to Change Gridview TextBox Value.

Jayakumars
Posted by Jayakumars under ASP.NET AJAX category on | Points: 40 | Views : 951
Hi

I have post the Code after Gridview Bind Change the TextBox value.


protected void Bt_Submit_Click(object sender, EventArgs e)
{

int i=1;
foreach(GridViewRow grv in Grd1.Rows)
{
TextBox txt1 = (TextBox)grv.FindControl("Txthead");
txt1.Text = "ZZZ"+i;
i++;
}

}

Comments or Responses

Login to post response