Solved

DBGrid cell has focus.

Posted on 1998-11-30
3
332 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

What Security Threats Are You Missing?

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

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…
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…

744 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

14 Experts available now in Live!

Get 1:1 Help Now