Board index » cppbuilder » TStringGrid -- Entering Strings into Cells

TStringGrid -- Entering Strings into Cells

I am just getting started with Borland Builder and just can't figure out how
to put a string into a TStringGrid cell.  I know it must be ridiculously
simple.  Can anyone tell me how to do this?  Thanks!
 

Re:TStringGrid -- Entering Strings into Cells


Use the Cells property, ie:

    // place text into the cell at Column 5, Row 2
    // (remember that columns and rows are 0-indexed)
    StringGrid1->Cells[4][1] = "some text";

Gambit

"Craig S. Hammes" <cra...@ocinet.net> wrote in message
news:3b706022_1@dnews...

Quote
> I am just getting started with Borland Builder and just can't figure out
how
> to put a string into a TStringGrid cell.  I know it must be ridiculously
> simple.  Can anyone tell me how to do this?  Thanks!

Other Threads