How to retrieve text from TStringGrid when select it
Posted on 2008-06-22
I have a stringgrid named 'Sg1'
It has 6 columns and many rows depending on data loaded into it. I need to be able to click any cell in column 0 and have the text returned as a string.
Title Genre Actor(1) Actor(2) Actor(3) Location Mad Max Action Mel Gibson Tina Turner Home
I have the top row fixed and the next row(s) has the data in them. I need to be able to click on any cell in Col(0) the title column and have delphi return a string of the text that is in that cell. So if a user clicks on cells[0,5] it will show me/them the text in that cell but if they click on cells[1,5] it will not do anything. I only need col '0' to be active.
Thanks in advance