Hi,
My database has a blob field with a small jpeg in it. I'm setting up the column as follows:
tmscol.width := 250; // max size of jpegs
tmscol.PictureField := True;
tmscol.PictureStretch := TStretchMode.ShrinkWithAspectRatio;
With the grid's PageMode = FALSE, I get this:
When I set the PageMode = TRUE, it appears okay.
Help
Stuart
Update:
When I refresh the underlying dataset like this:
DBAdvGrid1.DataSource := nil;
try
ds_SearchResults.DataTable.Close;
ds_SearchResults.DataTable.Open;
finally
DBAdvGrid1.DataSource := ds_SearchResults;
end;
The images appear okay -- there's no before/after close/open handlers making any changes to the grid.... so I have no idea what the problem is.
Look forward to hearing from you
For PageMode = false, can you set DBAdvGrid.ShowPictureFields = true?
With this settings this works as expected here for both PageMode = true and PageMode = false.