2
Answers

gridview

Ask a question
ranjan sahoo

ranjan sahoo

11y
803
1
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)