Information générale
Catégorie:
Codage, syntaxe et commandes
>I have a problem that there are no columns in that grid at disign time.
>I add them during runtime using the methode addcolumn. I do no know how change standard dbclick from the added column
In this case, I would create a textbox class that you use onlt for Grids, and in the DoubleClick put:
This.Parent.Parent.ControlDblClick(This)
Then when you add a column remove the default textbox and add yours (You should be able to find many threads about this if you need help). And in your gridclass add the method ControlDblClick() with a parameter. Now, you just move your code from DblCLick() to COntrolDblClick() in the grid.
This trick is very handy for all parts of the grid. Example: it allows you to have only one Header class in code, but every grid may have a different method for the header being clicked, because the code is in the grid instance :-)
Good Luck!
Précédent
Suivant
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