Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Did not see anything about grid.ActiveRow in your desc, since you are an old hand probably only an omission of description, not code.
At least something I'd expect to need somewhere in the code runnig confronted with problems you describe;-))
>Some background:
>
>I'm working on an app where we have a container in a column of a grid. This container has controls where you can edit data including a combo box. In order to mimic the "Sparse" option (which has to be .F. for this container to appear correctly) for the combos, I have a textbox that overlaps the combos, then selectively show/hide them based on focus. I also have a label in the container that needs to show a generated string based on the selections. To get that to refresh, I've set the DynamicForeColor property of the column that holds the container to call a method - this method then calls the code that refreshes the label and returns RGB(0,0,0) so DynamicForeColor doesn't complain.
>
>This actually all works OK.
>
>The issue I'm running into is when you set focus to this the row/column that has the container, the combo then appears (as it should). However, it also in ALL other rows. Which isn't what I want. I believe the grid uses the same control instance which would explain the behavior, but I really need it to NOT do that ;-)
>
>In the past I've actually just skipped the grid and built my own container of controls. The big downside to doing that is the speed. If you have a bunch of controls this is really slow.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement