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
Strange implicit string c...
by
Sergey Tkachenko
[
Today
at 01:14:50 pm]
how to change font.color ...
by
Zvoni
[
Today
at 01:11:17 pm]
Unselect all rows in stri...
by
Jonny
[
Today
at 01:10:54 pm]
Tesseract for ocr
by
Packs
[
Today
at 01:05:14 pm]
Is there a code formatter...
by
Zvoni
[
Today
at 12:56:12 pm]
using RunCommand to wrap ...
by
MarkMLl
[
Today
at 12:14:30 pm]
"set of": order of elemen...
by
440bx
[
Today
at 12:09:33 pm]
read keys from windows ko...
by
Matze
[
Today
at 11:41:33 am]
visasession
by
MarkMLl
[
Today
at 11:34:28 am]
Treeview: full-width back...
by
d7_2_laz
[
Today
at 09:57:32 am]
UADE Library
by
TRon
[
Today
at 09:27:13 am]
how to read cheque micr l...
by
Packs
[
Today
at 08:58:27 am]
User Domain
by
TRon
[
Today
at 08:49:48 am]
Bug in the formula MATCH
by
veb86
[
Today
at 07:28:39 am]
Error, the IF function do...
by
veb86
[
Today
at 06:47:30 am]
Source Editor - Open Sour...
by
n7800
[
Today
at 05:13:12 am]
Form Positioning (Run & D...
by
Tony Stone
[
Today
at 03:28:03 am]
StrToInt not raising an e...
by
ALLIGATOR
[
Today
at 03:17:25 am]
[solved] Issues was wrong...
by
What I can do
[
Today
at 01:03:09 am]
Specialisation doesn't se...
by
nixbody
[
Today
at 12:38:49 am]
Please explain what is Po...
by
PascalDragon
[February 06, 2025, 11:03:56 pm]
Compile App Error
by
eldonfsr
[February 06, 2025, 10:03:23 pm]
ellipse ? off topic
by
d2010
[February 06, 2025, 09:10:42 pm]
Telegram bots API Wrapper
by
Renat.Su
[February 06, 2025, 07:51:49 pm]
Custom self drawn compone...
by
wp
[February 06, 2025, 06:29:29 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: DBGrid columns no resize at run-time (Read 724 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