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
Assigning firebird file n...
by
egsuh
[
Today
at 09:56:40 am]
Developing FreePascal on ...
by
Thaddy
[
Today
at 09:23:18 am]
Adjacent rectangles not a...
by
Thaddy
[
Today
at 07:55:56 am]
Strings in Free Pascal: I...
by
Thaddy
[
Today
at 07:43:13 am]
Postgres, ZEOS and Visual...
by
Thaddy
[
Today
at 07:00:03 am]
Feature announcement: Fun...
by
Thaddy
[
Today
at 06:55:15 am]
[SOLVED] Strange behavior...
by
jamie
[
Today
at 12:08:12 am]
ThemeServices.OnThemeChan...
by
sgj
[January 18, 2026, 10:37:32 pm]
AVRPascal – free code edi...
by
ackarwow
[January 18, 2026, 10:18:12 pm]
help implementing frexp
by
srvaldez
[January 18, 2026, 09:25:07 pm]
my implementation of frex...
by
srvaldez
[January 18, 2026, 06:27:39 pm]
Rolling releases Lazarus[...
by
Martin_fr
[January 18, 2026, 04:37:42 pm]
Question about optimizer ...
by
PascalDragon
[January 18, 2026, 04:01:54 pm]
Very simple Style Manager...
by
sgj
[January 18, 2026, 02:21:54 pm]
How to set the Excel cell...
by
dodgex
[January 18, 2026, 02:06:25 pm]
PeaZip project turns 20 t...
by
JanRoza
[January 18, 2026, 01:57:46 pm]
How to implement multiple...
by
bills
[January 18, 2026, 01:26:29 pm]
AdvancedHTTPServer: A Go-...
by
CynicRus
[January 18, 2026, 12:48:43 pm]
RPNCalc in Lazarus
by
jwdietrich
[January 18, 2026, 12:13:43 pm]
Is this Pascal Compiler t...
by
HKPhysicist
[January 18, 2026, 11:11:59 am]
Maze Makers: Modified Cyl...
by
Boleeman
[January 18, 2026, 08:51:29 am]
Olympic Rings (Interleave...
by
Boleeman
[January 18, 2026, 04:28:24 am]
Unit decfloat
by
MathMan
[January 17, 2026, 08:29:41 pm]
Funny
by
Ten_Mile_Hike
[January 17, 2026, 08:18:39 pm]
New book on Object Pascal
by
Ten_Mile_Hike
[January 17, 2026, 07:34:06 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Column width with two WDataGrid. Pas2JS_Widget (Read 991 times)
rca
Full Member
Posts: 118
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: 118
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