Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 182281
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T14:54:43+00:00 2026-05-11T14:54:43+00:00

Delphi 2007. I have a TGrid with more rows than will fit on the

  • 0

Delphi 2007.

I have a TGrid with more rows than will fit on the screen, and the height of the grid is such that there is a partially drawn row at the bottom. When I click on this partial row, it jumps up to be fully visible (via a procedure called ‘ClampInView’ in Grids.pas). But it doesn’t stop. Since the mouse is now over a new partially drawn row, that jumps up too.

The net effect is that clicking on the partially drawn row starts selecting cells in a vertical column, spinning all the way to the bottom (or until you release the mouse).

I have replicated this on a fresh winforms project with just a single grid with 100 rows, and no code, so I’m pretty sure it’s not something I’m doing in code wrong.

It is bad for me because the form I have in real code has drag and drop type behaviour, so clicking and releasing ~0.1 seconds later on the partial row will pick up the item in the cell and drop it about 50 rows lower. This is definitely not what you expect to happen when you click on a cell.

Any suggestions how to fix/work around this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T14:54:44+00:00Added an answer on May 11, 2026 at 2:54 pm

    You can try override MouseDown in your grid and do not call inherited MouseDown, if user clicks in ‘bad’ places.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Windows CGI created with Delphi 2007 using CGIExpert that I need
I made an OCX with Delphi 2007. Now my customer claims that there is
I have Delphi 2007 code that looks like this: procedure WriteString(Stream: TFileStream; var SourceBuffer:
I have a Delphi 2007 application that has a TAnimate control with a FindFile
I have Windows Server 2008 R2 Machine that is running a Delphi 2007 application.
I have a MDI application written in Delphi 2007. If the user exits a
I have a rather large (freeware) project written with Delphi 2007 which is using
I have just ported several of our home-made Outlook COM-addins from Delphi 2007 to
Does that mean that I can't share a Form between delphi 2007 and 2009?
Both, Borland Pascal 7 and Delphi 2007 have got the procedure STR which takes

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.