Posted on: 6/10/2011 3:44:13 AM | Views : 440

Hi,
I have one gridview, my gridview have button also for each row, when that button click i want to get the each cells value of that row.
I coded like this
protected void EditLink_Click(object sender, EventArgs e) { LinkButton link = sender as LinkButton; GridViewRow row = (GridViewRow)link.NamingContainer; TextBox7.Text = row.Cells[1].Text; TextBox8.Text =Scrub(row.Cells[2].Text); TextBox9.Text = row.Cells[3].Text; TextBox10.Text = row.Cells[4].Text; TextBox11.Text = row.Cells[5].Text; TextBox12.Text = row.Cells[6].Text; }

the textboxes are defined below gridview but the value of textboxes are null,
Anyone now why? ...

Go to the complete details ...