Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Networking and Web Programming
»
Pas2JS
»
Column width with two WDataGrid. Pas2JS_Widget
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
TurboBird for FireBird 5
by
laguna
[
Today
at 07:45:04 am]
Bugs caused by the weathe...
by
dsiders
[
Today
at 04:40:59 am]
[Solved[ How to define th...
by
jamie
[
Today
at 02:33:13 am]
Lazarus Bugfix Release 4....
by
moinsen
[
Today
at 12:57:37 am]
Lazarus IDE plugin that i...
by
BSaidus
[August 10, 2026, 11:21:20 pm]
Is it timing of a dataset...
by
1HuntnMan
[August 10, 2026, 09:41:05 pm]
Dataset EnableControls/Di...
by
1HuntnMan
[August 10, 2026, 09:31:58 pm]
Application triggers mess...
by
JanRoza
[August 10, 2026, 09:29:03 pm]
[SOLVED] TTL Record Count...
by
1HuntnMan
[August 10, 2026, 09:21:46 pm]
Identify network devices
by
Warfley
[August 10, 2026, 08:16:02 pm]
TFPHTTPServer DDoS protec...
by
Warfley
[August 10, 2026, 07:58:41 pm]
Gtk3 becomes default widg...
by
PascalDragon
[August 10, 2026, 07:44:48 pm]
how to connect to mariadb...
by
eldonfsr
[August 10, 2026, 07:38:05 pm]
Is it possible to communi...
by
Warfley
[August 10, 2026, 07:37:35 pm]
How get listy of FieldDat...
by
eldonfsr
[August 10, 2026, 06:19:37 pm]
PasGuard – Code Protectio...
by
pasguard
[August 10, 2026, 05:32:53 pm]
TyControls: a custom-draw...
by
Antek
[August 10, 2026, 05:20:29 pm]
Diagonal Lines and Spaced...
by
Boleeman
[August 10, 2026, 04:29:07 pm]
[UPDATE] SedaiBasic - SSA...
by
Gigatron
[August 10, 2026, 04:00:12 pm]
Unleashed Pascal (async/a...
by
creaothceann
[August 10, 2026, 02:24:53 pm]
MR - DebuggerIntf for ter...
by
Martin_fr
[August 10, 2026, 01:50:18 pm]
New charts
by
JD
[August 10, 2026, 12:13:34 pm]
PIX (Picture in Hexadecim...
by
ADMGNS
[August 10, 2026, 11:15:06 am]
Fpcupdeluxe
by
DonAlfredo
[August 10, 2026, 10:22:45 am]
Star Wars Galaxian
by
PierceNg
[August 10, 2026, 10:10:44 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Column width with two WDataGrid. Pas2JS_Widget (Read 1148 times)
rca
Full Member
Posts: 125
Column width with two WDataGrid. Pas2JS_Widget
«
on:
February 18, 2025, 05:41:17 am »
I have a Button WButton1 and two DataGrids (WDataGrid1 and WDataGrid2).
I load the respective data in the procedure
TWForm1.FormCreate
Code: Pascal
[Select]
[+]
[-]
WDataGrid1
.
Data
:
=
jData1
;
WDataGrid2
.
Data
:
=
jData2
;
And they work and display correctly.
I want to change the width of the first column of the WDataGrid2 with:
Code: Pascal
[Select]
[+]
[-]
procedure
TWForm1
.
WButton1Click
(
Sender
:
TObject
)
;
begin
WDataGrid2
.
Columns
[
0
]
.
Width
:
=
20
;
end
;
However, it also affects the width of the first column of the WDataGrid1.
Logged
rca
Full Member
Posts: 125
Re: Column width with two WDataGrid. Pas2JS_Widget
«
Reply #1 on:
February 18, 2025, 09:54:55 pm »
I attach a simple test program, which even if you only want to modify the width of the first column
of WDataGrid2, visually the same change is also reflected in WDataGrid1.
Please, can someone help me?
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Networking and Web Programming
»
Pas2JS
»
Column width with two WDataGrid. Pas2JS_Widget
TinyPortal
© 2005-2018