In v5 if I want the row to BestFitRow(i) it would assign the row height to that of the tallest column when wrapped.
In v6 if I set the column to WrapKind = wkWordWrap, and the column type is TNxTextColumn with data containing carriage return the field doesn't wrap. Since it doesn't wrap, BestFitRow(x, y) doesn't work, where y is the column in question.
Am I missing something?
I've set the grid to AutoFit = True, FitOptions[foRow = True, foColumn = False], column VerticalAlignment = taAlignTop, and have tried setting the column to MultiLine = True, and changing to a different WrapKind but it's not working.
When I mouse over I see the hint, plus the white area (see screenshot) on some rows, but not others.
http://i.imgur.com/6YPde0o.jpg
This is how I'm adding data to the grid.
qry.Open; grd.ClearRows; while not qry.Eof do begin grd.AddCells( ['False' ,qry.FieldByName('CustomerName').AsString ,qry.FieldByName('PrintNumber').AsString ,qry.FieldByName('GroupName').AsString ,qry.FieldByName('Age').AsString ,qry.FieldByName('TxnTime').AsString ,qry.FieldByName('ExpiresDate').AsString ,qry.FieldByName('InventoryNumber').AsString ,qry.FieldByName('CustomerId').AsString] ,[0,1,2,3,4,5,6,7,8] ); grd.Cell[grd.Columns.ItemBy['InventoryNumber'].Index ,grd.LastAddedRow].Hint := qry.FieldByName('InventoryDesc').AsString; grd.BestFitRow(grd.LastAddedRow, grd.Columns.ItemBy['InventoryNumber'].Index); qry.Next; end;
Thanks!