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
WIKI Timeout issues
Please read here if you have trouble connecting to the wiki
Recent
internal Compiler Error
by
Nitorami
[
Today
at 03:13:57 pm]
Reference to bsSolid give...
by
wp
[
Today
at 03:09:17 pm]
[Solved]Open Project fail...
by
cdbc
[
Today
at 03:06:30 pm]
controls.lpr(731,15) Erro...
by
Bandy
[
Today
at 02:53:02 pm]
Questions about GUID decl...
by
440bx
[
Today
at 02:18:30 pm]
Popup Form to close when ...
by
Thaddy
[
Today
at 02:10:55 pm]
Spikey Splat Creatures fr...
by
Boleeman
[
Today
at 01:19:35 pm]
Amigo programming languag...
by
paxscript
[
Today
at 12:20:33 pm]
Input Chinese using Micro...
by
momigo
[
Today
at 10:50:40 am]
Ballet of Lines and Dots ...
by
Boleeman
[
Today
at 09:19:59 am]
Using icons in own open s...
by
paule32
[
Today
at 08:14:05 am]
ChatGPT and ObjectPascal ...
by
Thaddy
[
Today
at 07:56:29 am]
control '' has no parent
by
Thaddy
[
Today
at 07:23:07 am]
Converting excel to csv -...
by
andresayang
[
Today
at 01:44:28 am]
Persistent MacOS Arm M ch...
by
BVale
[
Today
at 12:05:12 am]
Original game - 3 Cross
by
TBMan
[
Today
at 12:01:24 am]
Exporting larger files
by
Guser979
[July 08, 2025, 11:55:04 pm]
json goes RichMemo
by
Thaddy
[July 08, 2025, 08:52:20 pm]
MDI ChildForm
by
CharlyTango
[July 08, 2025, 08:41:25 pm]
Fern Leaf Fractal (Recurs...
by
Lulu
[July 08, 2025, 07:54:23 pm]
Trouble compiling fpc for...
by
ermok
[July 08, 2025, 06:21:06 pm]
Feature request: hard typ...
by
440bx
[July 08, 2025, 05:53:44 pm]
Lazarus 4 and TAChart Hin...
by
Nicole
[July 08, 2025, 05:13:38 pm]
Pappas Chain Ring: Not Ro...
by
Boleeman
[July 08, 2025, 01:06:20 pm]
Creating .deb packages fo...
by
CM630
[July 08, 2025, 12:36:36 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: DBGrid columns question (Read 3103 times)
xinyiman
Hero Member
Posts: 2258
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