Solved

problem with dbgrid and data grid alginment

Posted on 2000-03-30
3
127 Views
Last Modified: 2010-05-02

      When you take the left or top property of a particular cell
in a dbgrid why it is giving a less value than the original
value????
0
Comment
Question by:jacobg12
  • 2
3 Comments
 
LVL 3

Expert Comment

by:Gordonp
Comment Utility
what do you mean by original value,

if you mean the top and left values for the grid, then its because the left and top for the Cell, is the values from the top/left of the grid.


+---Form------------------
|
|<Grid.Left>#===Grid====
|           |    
|           |<Cell.Left>#Cell#

as my stunning picture shows(sort of)

Gordon
0
 
LVL 2

Expert Comment

by:damienm
Comment Utility
Gordon is right, the value for the cell is the distance from the top of the grid and not the distance from the top of the form.  Where as the whole grid is from the top of the form.
0
 
LVL 3

Accepted Solution

by:
Gordonp earned 50 total points
Comment Utility
I'm locking this question  to prevent the question getting autodeleted before jacobq12 looks at these comments

GordonP
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now