• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 140
  • Last Modified:

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????
0
jacobg12
Asked:
jacobg12
  • 2
1 Solution
 
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
 
GordonpCommented:
I'm locking this question  to prevent the question getting autodeleted before jacobq12 looks at these comments

GordonP
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now