I want to highlight a row of gridview.
based on its ID number.
for ex: id=15;
then i want to hilight row thats id is "15"
without Select row.
protected void SearchText(object sender, EventArgs e)
{
foreach (GridViewRow row in this.GridView1.Rows)
{
if (row.Cells[1].Text == this.txtSearch.Text.Trim())
{
GridView1.SelectRow(row.RowIndex);
row.BackColor = Color.PeachPuff;
}
}
}
in this code "row.Cells[1].Text " Founds Null Value