1 (edited by blackpearl8534 2020-02-22 14:11:29)

Topic: Bug Found in 6.3

hello Dmitiry..
i found an error in 6.3 version..
when i click in grid then this error shows. in version 6.0  its works properly

Post's attachments

Attachment icon error.zip 104.91 kb, 245 downloads since 2020-02-22 

2 (edited by ehwagner 2020-02-23 01:11:07)

Re: Bug Found in 6.3

blackpearl8534,
Even if your code would work I hate to say this but it is very inefficient. You are spinning through the tablegrid every time you click on it just to get the info from the selected row. You do not need to do this. As soon as the user clicks on a row it is selected so you can get the cell info from the row immediately. See below.

procedure Form1_TableGrid1_OnCellClick (Sender: TObject; ACol, ARow: Integer);
begin
   Form3.Edit3.Text := Form1.TableGrid1.Cells[2,ARow];
   Form3.Edit4.Text := Form1.TableGrid1.Cells[3,ARow];
   Form3.Edit5.Text := Form1.TableGrid1.Cells[5,ARow];
   Form3.Edit6.Text := Form1.TableGrid1.Cells[6,ARow];
   Form3.ShowModal;   // or whatever you want to do at this point
end;

Let me know if you still get the error.

Re: Bug Found in 6.3

Hello.


Please attach your project, I will test it.

Dmitry.