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
Solved

problem with dbgrid and data grid alginment

Posted on 2000-03-30
3
130 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
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.


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

as my stunning picture shows(sort of)

Gordon
0
 
LVL 2

Expert Comment

by:damienm
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.
0
 
LVL 3

Accepted Solution

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

GordonP
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
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…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

839 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