Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Databases
»
DBGrid columns no resize at run-time
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
Recent
Lazarus Bugfix Release 3....
by
jcmontherock
[
Today
at 09:01:41 pm]
application->terminate ma...
by
Remy Lebeau
[
Today
at 08:58:28 pm]
Drawing with psInsidefram...
by
Jonny
[
Today
at 08:20:18 pm]
AVRPascal – free code edi...
by
ackarwow
[
Today
at 07:49:52 pm]
TDBEdit uneditable
by
ackarwow
[
Today
at 07:29:42 pm]
Threads window (in Debug ...
by
erol
[
Today
at 06:31:17 pm]
Help with tablayout.getti...
by
Narciso
[
Today
at 05:29:43 pm]
مشكلة في التقارير
by
Gebo
[
Today
at 05:25:14 pm]
Conditional variable defi...
by
TRon
[
Today
at 04:50:00 pm]
UK's Online Safety Act
by
tetrastes
[
Today
at 03:12:06 pm]
Result not being set in c...
by
Thaddy
[
Today
at 03:09:12 pm]
Problem with TTabControl
by
MISV
[
Today
at 02:12:53 pm]
Getting format error load...
by
MISV
[
Today
at 02:07:44 pm]
How C++ class multiple in...
by
Thaddy
[
Today
at 01:39:03 pm]
Guide Lines Behavior
by
GerholdtSchnaps
[
Today
at 01:35:16 pm]
Fpcupdeluxe
by
DonAlfredo
[
Today
at 12:53:33 pm]
Return nil/null of data t...
by
Warfley
[
Today
at 12:51:48 pm]
FPHTTPClient and SSL not ...
by
Thaddy
[
Today
at 12:45:01 pm]
Painting on a control - 3...
by
majolika
[
Today
at 11:06:26 am]
Amigo programming languag...
by
paxscript
[
Today
at 10:05:39 am]
Exclude Jedi Code Formatt...
by
JuhaManninen
[
Today
at 06:13:54 am]
Preparing FPC 3.2.4, poin...
by
PascalDragon
[January 23, 2025, 10:34:10 pm]
Generic function speciali...
by
PascalDragon
[January 23, 2025, 10:17:13 pm]
Resolving procedure symbo...
by
440bx
[January 23, 2025, 10:16:17 pm]
Assembler window colors
by
Kornelius
[January 23, 2025, 10:11:46 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: DBGrid columns no resize at run-time (Read 658 times)
pat03uk
New Member
Posts: 20
DBGrid columns no resize at run-time
«
on:
October 23, 2024, 10:18:17 am »
I can't resize the columns of a DBGrid at run time using the mouse.
I get the resize cursor when hovering over the header junction between columns but no resize.
This is latest Lazarus on a Mac.
Pat
Logged
five
New Member
Posts: 28
Re: DBGrid columns no resize at run-time
«
Reply #1 on:
November 12, 2024, 05:10:50 pm »
Hi pat03uk,
I was able to reproduce this behavior. If you have a silent exception on the OnMouseDown event linked to the DBGrid, you will not be able to resize columns.
Check if you have any overloaded events related to the mouse action on your DBGrid that are not raising exception.
Code: Pascal
[Select]
[+]
[-]
Procedure
TfmMainDemo
.
grdProjectMouseDown
(
Sender
:
TObject
;
Button
:
TMouseButton
;
Shift
:
TShiftState
;
X
,
Y
:
Integer
)
;
Begin
// Simulate a silent exception
Abort
;
End
;
«
Last Edit: November 12, 2024, 05:20:21 pm by five
»
Logged
pat03uk
New Member
Posts: 20
Re: DBGrid columns no resize at run-time
«
Reply #2 on:
November 16, 2024, 06:40:43 pm »
five
Thanks for that. I will check but I have since tried KDBGrid, RXDBGrid which work as expected. Then I went back to DBGrid and that now worked fine as well. So I don't know what the problem was.
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Databases
»
DBGrid columns no resize at run-time
TinyPortal
© 2005-2018