problem with dbgrid and data grid alginment


      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????
jacobg12Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
GordonpConnect With a Mentor Commented:
I'm locking this question  to prevent the question getting autodeleted before jacobq12 looks at these comments

GordonP
0
 
GordonpCommented:
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
 
damienmCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.