I have a tadvstringgrid to display HTML formated data. Now I want to avoid wordwrap and set wordwrap to false, but it is ignored. The text in the cells is wordwrapped.
You can call grid.AutoSizeColumns() / AutoSizeRows()
example:
procedure TForm4.FormCreate(Sender: TObject);
begin
AdvStringGrid1.WordWrap := false;
AdvStringGrid1.Multilinecells := true;
Advstringgrid1.Cells[1,1] := 'very long line1 <b>blablabla</b>'#13#10'line2'#13#10'line3';
AdvStringGrid1.AutoSizeRows(true);
AdvStringGrid1.AutoSizeColumns(true);
end;
Thanks for the answer, but I now the Autosize functions, but that is not what I want. I have a grid, where I allready autosize the columns to fit on the form. I have a fixed number of columns and want to display all columns in the same size and all columns have to be visible without using a scorllbar. So the size of the columns is allready calculated by the width of the grid divided by the number of columns. What I want is, that the first part text of every line in a cell is displayed and every line is cut off on the right side of the cell.
Sorry, the HTML engine will always perform wordwrap. There is currently not a setting to disable wordwrap on HTML formatted text.
ok, thank you. So I stick with the workaround