
DataGrid: Selecting a row by single/double clicking
One last question on datagrids and I'll leave y'all along...
In my project I display a grid full of data from a recordset object in one
form.
What I want is to be able to double-click anywhere in a row and pop-up
another form to display that record field by field.
When I double-click in the "row selector" column, everything works just as
I'd like it to. I put my code in the DataGrid1_DblClick() event.
If I try clicking on a data cell, it actually takes *3* click for things
to work. The first click seems to select the cell, then the next 2 clicks
seem to fire the DblClick event.
Is there someother event I should be trapping to get the desired behaviour
when double-clicking on a data cell?
Once again, I *have* snooped in the docs and the object browser looking
for likely events, but I haven't found anything.
Once again, clues would be vastly appreciated!
Ooops... Just one more, please?
In the second form where I display a single record, I've added basic
recordset navigation (ie. MoveNext, MovePrevious). Because I've passed a
reference to the form1 (w/ the grid) record object to form2 (the single
rec form), when I navigate on form2, I can see the little arrow in the
row selector column moving up and down just fine.
Unhappily, the dark backgroud of the row I orignally selected doesn't
move.
Is there some way I can either move the dark backgroud with the row
selector arrow (i.e. some event + some property in the datagrid) or can I
simply "un-darken" the originally selected row?
Simeon
--
The address in the header *is* actually replyable.
If replying, use mail or post here. Please, not both
If you're not outraged, you're not paying attention