Amol111 says:
row.Cells[1].Text
you cant get the cells directly as you have used template field so you need to find the control and use it in if condition like below
foreach (GridViewRow row in this.gvdEncashment.Rows)
{
if ((row.FindControl("Your Comparing Control 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;
}
}