Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: ASP
Posted by: Mario Lopes
Added: Nov 7, 2018 3:28 PM
Views: 4
Percorre todas as linhas da grid e retorna os seus valores. O campo da textbox terá que ser template
  1.  foreach (GridViewRow row in GridView5.Rows)
  2.         {
  3.             string accessType = row.Cells[1].Text;
  4.             TextBox txtName = (TextBox)row.FindControl("TextBox4");
  5.             Response.Write(accessType+" "+txtName.Text);
  6.         }