General information
Category:
Coding, syntax & commands
Thanks for your reply,
I create a object in my class gridtextbox2
I placed a wait window in de dbclick() methode en Valid() methode
I used the removeobject methode to remove the standard text1.
I used addobject en (tried newobject)to add to gridtextbox2.
If i click the textbox i seems that the valid methode and dbclick are not
working.
What is gone wrong do i something wrong
Kind regards
Jan Dorresteijn
>>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!
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only