ok, so i have a stringgrid on my form. i set the text of the first fixed row as the following:
StringGrid1->Rows[0]->CommaText = "text1, text2, text3, text4, text5";
and i fill the rest of the rows the same way, with variable strings, A, B, C, D, E, F; but i have long strings of text some time, and i can not see all of it in the cell.i need to know how to resize, dynamically one or more cell to fit that text.
that's what i did at first:
StringGrid1->Rows[1]->CommaText""+string1+", "+string2+", "+string3+", "+string4", "+string5+"";
and then i found out that my last string5 that contains spaces is split in the cell where the space is so i did this:
StringGrid1->Rows[1]->CommaText""+string1+", "+string2+", "+string3+", "+string4"";
StringGrid1->Cells[4][1] = string5;
and it worked fine; but the problem is that not all the string is shown! i have long string5 some times, maybe 40 or more characters; so how can i resize the cell to fit the whole text?
tnx guys
StringGrid1->Rows[0]->CommaText = "text1, text2, text3, text4, text5";
and i fill the rest of the rows the same way, with variable strings, A, B, C, D, E, F; but i have long strings of text some time, and i can not see all of it in the cell.i need to know how to resize, dynamically one or more cell to fit that text.
that's what i did at first:
StringGrid1->Rows[1]->CommaText""+string1+", "+string2+", "+string3+", "+string4", "+string5+"";
and then i found out that my last string5 that contains spaces is split in the cell where the space is so i did this:
StringGrid1->Rows[1]->CommaText""+string1+", "+string2+", "+string3+", "+string4"";
StringGrid1->Cells[4][1] = string5;
and it worked fine; but the problem is that not all the string is shown! i have long string5 some times, maybe 40 or more characters; so how can i resize the cell to fit the whole text?
tnx guys