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
Solved

DBGrid cell has focus.

Posted on 1998-11-30
3
343 Views
Last Modified: 2013-12-25
You see, I have a problemo. I need my DBGRrid to have a combobox but it seems VB's DBGRID can't do that... (need some 3rd party software...which I don't have the money to pay for)

So my idea is to move a hidden combobox, make it visible ontop of the cell that currently has focus... So my question is how do you get DBGrid to tell you that so and so cell in so and so row currently has focus???

thanx in advance
0
Comment
Question by:load_o_crap
3 Comments
 
LVL 2

Accepted Solution

by:
cedricd earned 50 total points
ID: 1497883
With the row propertie you have the number of the row's active
With the col propertie you have the number of the column's active
With this you have the coordonate of the active cell
With dbgrid1.columns(col), you have the value of this cell.
(when i say the active cell, it's the cell which has the focus)
now you can imagine a numbered name for the combo and then make a relation between the col and row and the combo's name.
This is the only solution for you problem i think
0
 
LVL 13

Expert Comment

by:Mirkwood
ID: 1497884
I can give you a source code example but not for 50 points.
0
 

Author Comment

by:load_o_crap
ID: 1497885
thanx a bundle
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
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…
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…

837 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