ranjan sahoo

ranjan sahoo

  • NA
  • 311
  • 272.2k

gridview

Aug 22 2013 1:49 AM
Hi,

I have one problem when I am trying to compare two string value in grid view. it will show error:operator > cant beapplied to operands of type string and string
                string x = e.Row.Cells[7].Text.Trim();
                string y = e.Row.Cells[8].Text.Trim();

                if (x > y)
                {
          

          
              
                }
           else
              {

              }

 how to compare it ?. plz give me answer

Answers (2)