Topic: photo not updating

Sir,

while clicking in grid table its show photo if photo save in database.

but when clicking in grid table where photo is not save in database. then it shows the previous photo, that should be blank photo.

i have send you the file in email. please check.

thanks
nitin ingale

Post's attachments

Attachment icon not updateing photo.gif 311.4 kb, 200 downloads since 2017-03-22 

Re: photo not updating

Hello.

procedure StudentDashBoard_TableGrid1_OnCellClick (Sender: string; ACol, ARow: Integer);
begin
      StudentDashBoard.DBImage1.Clear;
      StudentDashBoard.DBImage1.LoadFromDatabase('StudentDatabase', 'Photo', StudentDashBoard.TableGrid1.dbItemID);
end;
Dmitry.