Solved

DataGrid Button Property Left and top of cell

Posted on 1998-08-27
3
138 Views
Last Modified: 2010-05-18
When the button is pressed I want to put a Combo Box over
the cell where the button is. I need to know how to get the
left and top of the cell that the button is on to position
the combo box. The only left and top I can find is for the
column not the cell.
0
Comment
Question by:DaveArnold
  • 2
3 Comments
 
LVL 2

Accepted Solution

by:
dabellei earned 100 total points
ID: 1431382
The data grid does'nt have a property for leftcell or something like it.  The only way i found for that is the property RowHeight and colwidth .

With the top and left of the grid you can now calculate the position of the cell on the screen and then place your combo box.
0
 

Author Comment

by:DaveArnold
ID: 1431383
Good Answer but how do I know which of the visible cells is
the one that was pressed. The row property tells me which
row within the record set is current but not that that row
is in the 5'th visible cell.
0
 

Author Comment

by:DaveArnold
ID: 1431384
Answered my own second question  use the First Row Property

Thanks
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…
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…
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…
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…

705 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

18 Experts available now in Live!

Get 1:1 Help Now