Topic: Not working the tablegrid counting

Hi all, Why does the counter not work in the tablegrid when it is in editable mode, or do I forget something? can't figure it out please !!

Re: Not working the tablegrid counting

It should work as designed.
If you attach your project, maybe we can understand what is going wrong.
Derek.

3 (edited by v_pozidis 2025-05-31 18:32:45)

Re: Not working the tablegrid counting

Ys sorry I have an small example , forgot to attach it
As you can see if you add a new record the counter doesn't get a value and is empty in the table grid. Any help ???

Post's attachments

Attachment icon Editable.zip 324.48 kb, 86 downloads since 2025-05-31 

Re: Not working the tablegrid counting

Any help please ..

5 (edited by sdpc62 2025-06-01 10:33:39)

Re: Not working the tablegrid counting

Hello v-pozidis
Have you tried adding an ID to your table?

Post's attachments

Attachment icon id.png 2.6 kb, 23 downloads since 2025-06-01 

Re: Not working the tablegrid counting

https://myvisualdatabase.com/forum/view … 121#p20121

Re: Not working the tablegrid counting

Hi Everyone,
As I understand it, the problem is specific to using a record_count with an editable grid.
When creating a new record using a separate edit form, the record_count is automatically allocated but this doesn't happen when using editable grids (I've tried a few things in conjunction with the 'OnInputAccept' event but can't get it working at the moment).
It's a shame that Dmitry didn't get the time to develop editable grids further as they could be much more useful.
Derek.

Re: Not working the tablegrid counting

Really a pity to stopped developing such a wonderful software.

Re: Not working the tablegrid counting

Hi Derek

You can try this.

Post's attachments

Attachment icon Editable-m.zip 5.54 kb, 86 downloads since 2025-06-01 

Re: Not working the tablegrid counting

Yes, this is the only solution!

Re: Not working the tablegrid counting

You can emulate the counter operation. This will be simpler than the previous solution.

Post's attachments

Attachment icon Editable-m emul.zip 5.07 kb, 72 downloads since 2025-06-01 

Re: Not working the tablegrid counting

Hi Sparrow,
Yes - sometimes the simplest solution is right in front of us and we don't see it - sad
Replacing 'record_count' with you own integer counter solves all of the problems when trying to use it with an editable grid.
Very neat!
Derek.