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
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
Layout problem by nested ...
by
Martin_fr
[
Today
at 10:42:13 pm]
"LCLVersion" in *.lfm fil...
by
Martin_fr
[
Today
at 09:45:17 pm]
FPC for high-performance ...
by
Thaddy
[
Today
at 09:42:33 pm]
How to stop macro executi...
by
440bx
[
Today
at 09:19:45 pm]
Lazarus 4.0 RC3
by
mattias
[
Today
at 09:04:03 pm]
x86_64-win64 annoys me
by
Nicole
[
Today
at 08:28:16 pm]
CEF component - the first...
by
loaded
[
Today
at 08:02:30 pm]
OpenDialog and mouse even...
by
Martin_fr
[
Today
at 07:37:19 pm]
InstallAware 2025 Sources...
by
msintle
[
Today
at 06:49:04 pm]
Sqlite & Zeos
by
CharlyTango
[
Today
at 05:01:43 pm]
Strict Aliasing Rule
by
nixbody
[
Today
at 04:19:41 pm]
Lazarus 4 - I give up and...
by
Nicole
[
Today
at 04:01:40 pm]
LazUtils, FileUtil.CopyDi...
by
AlexTP
[
Today
at 02:52:02 pm]
How to run an external pr...
by
Thaddy
[
Today
at 12:42:30 pm]
Help needed setting up LA...
by
silvercoder70
[
Today
at 12:12:06 pm]
Font character being clip...
by
Coxy
[
Today
at 12:04:54 pm]
FPReport designer, am I u...
by
dseligo
[
Today
at 10:28:13 am]
Which RTL Unit do I have ...
by
MarkMLl
[
Today
at 09:41:10 am]
Has anyone loaded ReactOS...
by
MarkMLl
[
Today
at 09:33:17 am]
IDE Lazarus 4.0 on Window...
by
Martin_fr
[
Today
at 09:22:58 am]
[SOLVED] Erm ... TPageCon...
by
EganSolo
[
Today
at 08:32:30 am]
Build failure
by
dbannon
[
Today
at 04:54:00 am]
[Solved]TChart How to sha...
by
Wilko500
[
Today
at 04:39:38 am]
SnapModbus
by
avra
[
Today
at 03:02:46 am]
Fast Canvas Library V1.0
by
Gigatron
[
Today
at 02:30:36 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Column width with two WDataGrid. Pas2JS_Widget (Read 359 times)
rca
Full Member
Posts: 102
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: 102
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