Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 352
  • Last Modified:

DBGrid cell has focus.

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
load_o_crap
Asked:
load_o_crap
1 Solution
 
cedricdCommented:
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
 
MirkwoodCommented:
I can give you a source code example but not for 50 points.
0
 
load_o_crapAuthor Commented:
thanx a bundle
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.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now