Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Free Pascal
»
Database
(Moderators:
FPK
,
Tomas Hajny
) »
SQLite and DBGrid, when updated DataSet grid displays nothing
Free Pascal
Website
Downloads
Wiki
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Bugtracker
IRC channel
Latest SVN
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Putting unstructured data...
by
MarkMLl
[
Today
at 08:35:51 pm]
Delphi 7 handling files
by
lucamar
[
Today
at 08:25:22 pm]
CPU simulators
by
MarkMLl
[
Today
at 08:19:27 pm]
TLazSerial : serial port ...
by
Joek
[
Today
at 08:09:58 pm]
Lazarus Release 2.0.12
by
geraldholdsworth
[
Today
at 07:56:13 pm]
Application doesn't start...
by
Fred vS
[
Today
at 07:46:10 pm]
[SOLVED] Stripping inner ...
by
Peter H
[
Today
at 07:24:38 pm]
Tchart distance
by
flori
[
Today
at 07:17:17 pm]
Brook Security (https)
by
RedOctober
[
Today
at 07:05:21 pm]
WinAPI - examples - post ...
by
440bx
[
Today
at 07:04:00 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: SQLite and DBGrid, when updated DataSet grid displays nothing (Read 2801 times)
lainz
Hero Member
Posts: 3957
Leandro Diaz
SQLite and DBGrid, when updated DataSet grid displays nothing
«
on:
December 21, 2018, 11:33:06 pm »
Hi, I have a DBGrid with a DataSource and a DataSet, the normal setup. It's displayed correctly until my application downloads from an API an update to the table in the DataSet and reloads it. The grid is not functional anymore.
Is strange because I have another DBGrid and is working fine. Someone had this problem before, I readed this:
https://forum.lazarus.freepascal.org/index.php?topic=40899.0
But did not help me at all.
Any setting, any special case when this is not working?
Logged
https://lainz.github.io/
- My Website
https://lazpaint.github.io/
- Download LazPaint
Soner
Full Member
Posts: 209
Re: SQLite and DBGrid, when updated DataSet grid displays nothing
«
Reply #1 on:
December 24, 2018, 04:56:52 pm »
Try this:
Dataset.disablecotrols;
Try
//... Download, import
finally
Dataset.EnableControls;
End;
Logged
lainz
Hero Member
Posts: 3957
Leandro Diaz
Re: SQLite and DBGrid, when updated DataSet grid displays nothing
«
Reply #2 on:
December 26, 2018, 11:56:15 pm »
Thanks. Unfortunately our code already uses that technique with the bad result I described.
Logged
https://lainz.github.io/
- My Website
https://lazpaint.github.io/
- Download LazPaint
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Free Pascal
»
Database
(Moderators:
FPK
,
Tomas Hajny
) »
SQLite and DBGrid, when updated DataSet grid displays nothing
TinyPortal
© 2005-2018