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
Any way to "embed" Window...
by
egsuh
[
Today
at 04:31:44 am]
class not found
by
SA.Blackmon
[
Today
at 02:02:29 am]
Extended Module Player
by
Gigatron
[March 11, 2026, 11:33:54 pm]
A collection of daily *NI...
by
Roland57
[March 11, 2026, 06:40:37 pm]
Pipewire API
by
Fred vS
[March 11, 2026, 05:47:15 pm]
[ANN] PasBuild 1.6.0 rele...
by
cdbc
[March 11, 2026, 05:07:14 pm]
ShortStrings vs long stri...
by
marcov
[March 11, 2026, 03:30:18 pm]
88 year D. Knuth changes ...
by
Curt Carpenter
[March 11, 2026, 03:08:55 pm]
[ANN] PasBuild 1.5.0 rele...
by
Graeme
[March 11, 2026, 02:30:32 pm]
CADSys4 3D.
by
zamtmn
[March 11, 2026, 02:13:31 pm]
Synchronizing Lazarus pro...
by
marcov
[March 11, 2026, 01:09:21 pm]
Need help with project ma...
by
dseligo
[March 11, 2026, 12:12:04 pm]
Debian removes FPC/Lazaru...
by
marcov
[March 11, 2026, 11:58:36 am]
Qt6/Wayland clipboard: pa...
by
zeljko
[March 11, 2026, 11:53:24 am]
Questions about TFuncSeri...
by
hedgehog
[March 11, 2026, 09:50:46 am]
macOS 14+ Install Instruc...
by
CM630
[March 11, 2026, 07:56:45 am]
Update a table with an Au...
by
CraigC
[March 10, 2026, 10:54:23 pm]
TSplitter color property ...
by
backprop
[March 10, 2026, 08:43:28 pm]
Z80 ZX Spectrum and Syste...
by
Cascade
[March 10, 2026, 08:22:14 pm]
could Ardour's YTK be use...
by
robert rozee
[March 10, 2026, 03:18:36 pm]
[revisited] triple click
by
Thaddy
[March 10, 2026, 01:08:40 pm]
Hello! Anything new?
by
JuhaManninen
[March 10, 2026, 11:22:16 am]
C/C++ code to Object Pasc...
by
domasz
[March 10, 2026, 10:44:20 am]
[Solved] Saving a workboo...
by
Kaljakoira
[March 10, 2026, 09:09:59 am]
Good GPU accelerated math...
by
myisjwj
[March 10, 2026, 03:17:06 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: DBGrid columns question (Read 3225 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