Forum Discussion

David91's avatar
David91
Frequent Contributor
9 years ago

FindRow no finds string in column

Hello, please advice. I can not find string EUR column 0 in Infragistics.Win.UltraWinGrid.UltraGrid. Do not know why. When I want to find value in the second column and FindRow works. I do not understand. Thanks

 

  var col = 0;
  var value = "EUR";
  var i = ultraGrid1.FindRow(col, value);
  Log.Message("row: " + i);
  • Do you get any error message ? what is it?
    if value not found would return -1
    Are you sure it's in correct case? ie. "EUR" not "eur" ?
    what if try to find other existing string?
    what if you use column caption rather than index ?
    also make sure that there is no hidden 0th column...so you may hav to search in 1st column

  • Thans your advice!!. This column is char type (my problem are space behind char) "EUR________________" :). Problem resolved ...

  • NisHera's avatar
    NisHera
    Valued Contributor

    Do you get any error message ? what is it?
    if value not found would return -1
    Are you sure it's in correct case? ie. "EUR" not "eur" ?
    what if try to find other existing string?
    what if you use column caption rather than index ?
    also make sure that there is no hidden 0th column...so you may hav to search in 1st column

    • David91's avatar
      David91
      Frequent Contributor

      Thans your advice!!. This column is char type (my problem are space behind char) "EUR________________" :). Problem resolved ...