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
Splitting Picture into Qu...
by
ADMGNS
[
Today
at 10:44:04 pm]
[New Component] ExtTabCtr...
by
wp
[
Today
at 10:19:06 pm]
water filling simulation
by
ADMGNS
[
Today
at 09:54:50 pm]
Array of structure -> str...
by
Seenkao
[
Today
at 09:44:44 pm]
Very rough version of a s...
by
Hansvb
[
Today
at 08:56:35 pm]
Portable verion of FPC an...
by
backprop
[
Today
at 08:40:34 pm]
GDB 17 for Windows
by
Martin_fr
[
Today
at 08:26:24 pm]
TStringGrid Question
by
J-G
[
Today
at 08:05:52 pm]
FPC Unleashed (inline var...
by
flowCRANE
[
Today
at 07:24:27 pm]
Lazarus Main and Gnome/Wa...
by
zeljko
[
Today
at 05:48:44 pm]
Benchmark: converting arr...
by
LemonParty
[
Today
at 03:25:25 pm]
Read/Parse PDB file to ge...
by
marcov
[
Today
at 02:48:12 pm]
[SOVLED]Curved text in La...
by
paweld
[
Today
at 11:00:52 am]
Fast Canvas Library V1.05...
by
microxa
[
Today
at 07:03:07 am]
"Identifier idents no mem...
by
Thaddy
[
Today
at 05:43:52 am]
[SOLVED] TPrintDialog Pro...
by
spuds
[
Today
at 01:30:20 am]
TPairsplitter could be be...
by
jamie
[
Today
at 12:36:34 am]
FloatToStr issue
by
J-G
[
Today
at 12:06:38 am]
Release ray4laz 6.0
by
Fred vS
[June 05, 2026, 09:06:27 pm]
Pascal for AI Agent CLI T...
by
Martin_fr
[June 05, 2026, 08:01:11 pm]
storing assets for releas...
by
flowCRANE
[June 05, 2026, 07:30:13 pm]
Benchmark aligned vs unal...
by
LeP
[June 05, 2026, 06:33:08 pm]
TstringGrid read cell col...
by
hedgehog
[June 05, 2026, 06:29:11 pm]
Range checks and `Move` o...
by
ASerge
[June 05, 2026, 05:17:19 pm]
Why is var after type in ...
by
Warfley
[June 05, 2026, 02:36:17 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Column width with two WDataGrid. Pas2JS_Widget (Read 1130 times)
rca
Full Member
Posts: 124
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: 124
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