Ask a Question

FindRow no finds string in column

SOLVED
David91
Frequent Contributor

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);
2 REPLIES 2
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
Frequent Contributor

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

cancel
Showing results for 
Search instead for 
Did you mean: