This forum is temporaily read-only. All existing discussions remain available for reference. For new questions, bug reports or support requests, please contact us at mail@lmdsupport.com.

TLMDDBGrid record move after POSTing a record

Hi.

With LMD2018, if a TFDMemTable (or other dataset, I presume) is attached to a TLMDDBGrid and a record is inserted or edited, when this record is posted (saved) the dataset moves to the first record. This didn't occurred with LMD2017 or with standard delphi's TDBGrid.

A demo program is attached. Try to insert some records, then move to e.g. the third record, edit it and post, you'll see that with TLMDDBGrid the dataset will move to the first record, while with TDBGrid it will stay on the just edited record. (you can select which grid to use with a radiobutton on the top of the form).

Comments

  • This does not happen with TClientDataSet. Requires time to debug.
  • edited August 2018
    Ok. In the meantime we must stay with LMD 2017, we can't bring to the client something with such a behaviour. This also means that all the bugs we found in 2017 that has been fixed in 2018 are still there... so please, fix this as soon as possible. As a side note, if 2017 didn't exhibit this strange behaviour, maybe it's simpler than you think to fix it ;)

    Thank you
  • Ehm, sorry but the bug is also effective with TClientDataSet... Are you sure you've tested it properly?

    See attached demo.
  • Yes, you right; this actually depended of record count. I've made the fix, please try it.
  • It seems ok now, we'll do some other field tests. Thank you.
Sign In or Register to comment.