Topic: Another problem with TableGrid

Another problem with TableGrid
see Attachment

Post's attachments

Attachment icon Senza-titolo-3.jpg 307.9 kb, 211 downloads since 2017-04-20 

Domebil

Re: Another problem with TableGrid

Version in use 3.4

Domebil

Re: Another problem with TableGrid

Hello.


Please attach your project. I will test it.

Dmitry.

Re: Another problem with TableGrid

Here is the project

https://www.dropbox.com/s/czp7ape1uf0gw … e.rar?dl=0

Domebil

Re: Another problem with TableGrid

When adding a product does not make the sum

Domebil

Re: Another problem with TableGrid

In this old project there is one mistake.


I have added new field bills.cost and place component edCost (you can hide it) on form frmService.


Also I have added a script:

procedure frmService_TableGrid1_OnCellClick (Sender: string; ACol, ARow: Integer);
begin
    frmService.edCost.Value := SQLExecute('SELECT cost FROM services WHERE id='+frmService.TableGrid1.sqlValue);
end;

Attached project:

Post's attachments

Attachment icon invoice_fixed.zip 23.62 kb, 376 downloads since 2017-04-20 

Dmitry.

Re: Another problem with TableGrid

If I create a new project I do not have these problems?

Domebil

Re: Another problem with TableGrid

domebil wrote:

If I create a new project I do not have these problems?

It depends how exactly you do it. I think you need fix the current project, not create a new.

Dmitry.

Re: Another problem with TableGrid

thank you Dmitrij!

Domebil