Information générale
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Network:
Windows 2008 Server
>I have a grid setup to resemble a listbox. When the grid is first activated
>the top row is highlighted. I would like for there to be no initial highlighting.
>Is this possible?
I don't know if there's a direct way to do this. If I had to do it right now, I would create a form (or custom grid class) property, which is initially set to .f.. Then I would populate the Dynamic* colors with white for the background so even if it is selected, it appears to NOT be selected. Then, after the grid receives focus, I would change the property to .t. so the Dynamic* color would show the selection.
Others may have better solutions for this, but this one would work. It's just kind of clunky. :-) Creating a custom grid class to handle it this way would make it less clunky.
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