protected void Button1_Click(object sender, EventArgs e) { foreach (GridViewRow item in GridView1.Rows) { //Use the proper column index int colindex = 0; if (item.Cells[colindex].Text.Equals(TextBox1.Text, StringComparison.OrdinalIgnoreCase)) { //Add your logic here } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)