if ((row.FindControl("id") as Label).Text == this.txtSearch.Text.Trim()) //You need to mention with which control value you are comparing.
{
gvdEncashment.SelectRow(row.RowIndex);
row.BackColor = Color.PeachPuff;
}
this code is correct for me
but I am Passing the Session["CgNo"]="1804" From "GridviewSelectedIndex Change Event" To Same Page That time i want To Show GridViewRow as Selected Using Session Value "1804"
gvdEncashment.SelectRow(row.RowIndex);
row.BackColor = Color.PeachPuff;