problem with dbgrid and data grid alginment

Posted on 2000-03-30
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
Question by:jacobg12
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2

Expert Comment

ID: 2668910
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.

|           |    
|           |<Cell.Left>#Cell#

as my stunning picture shows(sort of)


Expert Comment

ID: 2668983
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.

Accepted Solution

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


Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

732 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