1
Would you know to tell me if there’s a possibility when I select a line from the DBGrid, my StringGrid just recognize which line I selected?
I’m not doing functions: I’m just doing this kind of thing for user information, that is, my DBGrid has 2000 records found, and my StringGrid also, however, in DBGrid has the database records, and the StringGrid of another file. All I need is that at the time I select the record, on the respective line the StringGrid recognize which line I selected and go to it, without me having to search.
To be more clear, I want at some event, according to the execution of the system, when I select a certain line of the DBGrid, the StringGrid recognize and go to the respective line of DBGrid.
How to do?


You spoke of
StringListandStringGrid. Which one is right, after all? And what fills them? There is a relationship between a record shown inDBGridand a row of this other grid or list?– AlexSC
So @Alexsc, I said
StringListfirst, but I was wrong, as I edited up there, now it’sStringGrid. It would help?– Ramon Ruan
You want me to, when I select the 1000 line of the
DBGrid, the line 1000 ofTStringGridis selected or when selecting a line fromDBGridthe system looks for a "pair" in theTStringGrid? Edit your question to make it clearer please– Filipe.Fonseca
Could you show a little code? Just a small example of what you need, probably inside the event click.
– Math
@Filipe.Fonseca, exactly this, I edited my question.
– Ramon Ruan
Exactly what? I gave two chances, 1 or 2? :)
– Filipe.Fonseca
@Math, I don’t mean a code, because I can’t think of any, I don’t know the structure of Dbgrid, as for Stringgrid, I’m sure it’s related to the code :
StringGrid1.Row, I tried to match the Dbgrid Rows, but I don’t know the option.– Ramon Ruan
@Filipe.Fonseca EHAUEHAUHEAUHEAUHE, Sorry man, it’s a rush I just read the first one. So it’s the first msm.
– Ramon Ruan