Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

DataGrid Button Property Left and top of cell

Posted on 1998-08-27
3
Medium Priority
?
148 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 400 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

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.

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

688 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