Skip to content
Loading
  • Rajasekaran Bose
    +1
    I have already compared using if.
    1. if (row1.Cells["PNAME"].Value.Equals(txtProdsearch.Text.Trim()) && row1.Cells["DESC"].Value.Equals(txtDesc.Text.Trim()))  
     and I have used for and foreach. But same result...
    +1
  • Rajasekaran Bose
    +1
    Friends... Till now I don't have solution for this problem.
    +1
  • Nanddeep Nachan
    +1
    Can you please try debug values for row1.Cells["PNAME"].Value?
    Do they really have matching value of txtProdsearch.Text.Trim()?
    +1
  • Rajasekaran Bose
    +1
    The problem solved by using foreach and return method. Thank you Nanddeep...
    +1