Solved

DataGrid Button Property Left and top of cell

Posted on 1998-08-27
3
142 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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 process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

803 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