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
Enabling/disabling treevi...
by
wp
[
Today
at 10:34:12 pm]
Reading text file data in...
by
Bart
[
Today
at 10:27:26 pm]
Brook - Beginner trying t...
by
RedOctober
[
Today
at 09:56:53 pm]
Solved: Thread with CLI
by
ojz0r
[
Today
at 08:54:29 pm]
Code in If statement not ...
by
CarmichaelJohn
[
Today
at 08:50:15 pm]
Update individual row in ...
by
paweld
[
Today
at 08:45:39 pm]
TList<string> VS. TString...
by
JuhaManninen
[
Today
at 08:35:11 pm]
Online Package Manager
by
GetMem
[
Today
at 08:31:55 pm]
[Solved] 32 Bit vs 64 Bit...
by
Peter H
[
Today
at 08:06:18 pm]
Unlocking a Sqlite3 db-fi...
by
JanRoza
[
Today
at 07:38:43 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: SQLite and DBGrid, when updated DataSet grid displays nothing (Read 2775 times)
lainz
Hero Member
Posts: 3925
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
Soner
Full Member
Posts: 206
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: 3925
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
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