Solved

DBGrid cell has focus.

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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

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…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

710 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