Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Databases
»
DBGrid columns question
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
WASM import error
by
Fibonacci
[
Today
at 02:09:49 pm]
OpenDocument('Filename') ...
by
cdbc
[
Today
at 02:03:52 pm]
Lazarus Main not building...
by
dbannon
[
Today
at 01:45:45 pm]
TCollection wiki entry
by
Thaddy
[
Today
at 01:24:21 pm]
weird error message
by
cdbc
[
Today
at 12:23:13 pm]
Hello. I'm new to this co...
by
Marc
[
Today
at 11:04:21 am]
Freepascal
by
LeP
[
Today
at 09:40:33 am]
TTL Record Count, i.e. a ...
by
Zvoni
[
Today
at 09:10:08 am]
Printing on HP Smart Tank
by
Thaddy
[
Today
at 07:10:37 am]
P.I.S.S. a PlugIn-framewo...
by
cdbc
[
Today
at 06:38:27 am]
MVP made easier.
by
cdbc
[
Today
at 06:18:24 am]
I have made some progress...
by
onionmixer
[
Today
at 02:57:55 am]
Lazarus 4.6 may erase you...
by
Martin_fr
[July 12, 2026, 06:35:29 pm]
Best name for procedure
by
LemonParty
[July 12, 2026, 05:23:02 pm]
Fixed an RV32ec compiler ...
by
MattBradford
[July 12, 2026, 05:11:16 pm]
Many recent books on Laza...
by
Tomu
[July 12, 2026, 05:02:44 pm]
Lazarus Bugfix Release 4....
by
geraldholdsworth
[July 12, 2026, 04:35:14 pm]
International Pascal Cong...
by
zeljko
[July 12, 2026, 04:08:53 pm]
equivalent to C/C++ "offs...
by
jamie
[July 12, 2026, 02:43:16 pm]
val return code
by
ALLIGATOR
[July 12, 2026, 01:40:21 pm]
Help needed on how to do ...
by
cdbc
[July 12, 2026, 12:15:15 pm]
PascalRAL the fastest, mo...
by
Mobius1
[July 12, 2026, 11:24:00 am]
TDateTimePicker - Make th...
by
AlexanderT
[July 12, 2026, 09:57:05 am]
UI app to work with SQLit...
by
LeP
[July 12, 2026, 12:50:04 am]
Elite Arcade
by
Guva
[July 11, 2026, 11:25:29 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: DBGrid columns question (Read 3271 times)
xinyiman
Hero Member
Posts: 2261
DBGrid columns question
«
on:
October 11, 2011, 11:41:44 am »
Question: in a DBGrid, you can add one or more columns that are not part of the datasource? In order to use them as variables of support? If you explain to me how? You can also change the order of the columns from code? Without going to work on the query? thanks
Logged
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1
goodname
Sr. Member
Posts: 297
Re: DBGrid columns question
«
Reply #1 on:
October 11, 2011, 02:54:41 pm »
Double clicking on the DBGrid in development will bring up a display where you can add, remove, edit title, and change the display order of columns. Have never tried to display something that was not in the query.
Logged
99Percent
Full Member
Posts: 160
Re: DBGrid columns question
«
Reply #2 on:
October 12, 2011, 04:17:00 am »
You will need to use a datasource anyway. What I usually do in these cases is use a in-memory dataset like TMemDataSet or TRxMemoryData copy the data from a query dataset and then add the fields programatically.
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Databases
»
DBGrid columns question
TinyPortal
© 2005-2018