Solved

DataGrid Button Property Left and top of cell

Posted on 1998-08-27
3
144 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
[X]
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
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
using Access 8 93
Excel - Save a copy of work book 13 96
how to Classify of email (pdf attachments) 7 56
adding "ungroup sheets" to existing vbs code 5 75
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

732 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