Setting focus to a row in a string grid
Posted on 2003-02-27
I'm new to delphi, so still trying to find my way around.
I have a string grid populated with various things. I want to search the strings for something and then set focus to that row. the searching is fine, but how do I set focus to the row? (Is there a simpler way to do it?)
Below is the code:
for i := 0 to grdComplete.Cols.Count - 1 DO
if pos(AnsiUpperCase(frmFind.txtFind.Text),AnsiUpperCase(grdComplete.Cols.Strings[i])) > 0 then
//move to row????