I've tried to retrieve data for the current record during "OnGetDisplText" and I seem only to get the value of the first record in the result set... It's strange all of the data that is automatically populated looks fine, but it's as though that was all done before the grid was painted. Here's a code snippet:
procedure TForm1.grdResultsGetDisplText(Sender: TObject; ACol, ARow: Integer; var Value: string);
begin
// Get the value from the database, then add something to it...
Value:= srcResults.DataSet.FieldByName('UserName').AsString ) + '...';
end;
The following is a comma delimited representation of the source data...
ColUserName, ColUserStartTime
'Bob', '12:30pm'
'Fred', '4:15pm'
'James', '6:45pm'
Here's a comma delimited representation of the information displayed in the grid...
'Bob', '12:30pm', 'Bob...'
'Fred', '4:15pm', 'Bob...'
'James', '6:45pm', 'Bob...'
What else should I be looking at?