Error dataset binding webdbgrid empty after insert

Hello everyone, I am working with a dataset and a webdbgrid, the problem is that when I try to insert a new record if the dataset is empty I get the following error

image

attached the source code of the prototype

Error dataset bind dbgrid empty after insert.zip (2.2 MB)

Is this with TMS WEB Core latest version v2.0.2.2 as so far, I could not reproduce this here?

I had this error back in March 2020 (see Inserting record into an empty dataset - WEB / TMS WEB Core - TMS Support Center (tmssoftware.com). I'm sure this was fixed, but the interim solution was to use Append instead of Insert. Now I think of it, I still do the following, so maybe it's not fixed.

If DataSet.IsEmpty then
   Dataset.Edit
else
   Dataset.Insert;
1 Like

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.