General information
Category:
Coding, syntax & commands
Create your own textbox class to insert into the grid's columns. Put the parent.parent code into your own textbox class's methods. In the init of the grid, loop through the columns deleting the textbox for each column and replacing it with your own, and while you're at it, set the column's sparse to .F.
That's about it.
If you create your own grid class with this code in the init, you'll never have to think about it again.
Alan
>John:
>Thanks for your advise, but that's exactly what I don't want to do, go to every cell's click and dblclick method and write a call the parent.parent's event, think of any other alternative?
>
>
>>Its the Cell's Click() and DblClick() that will fire. If you want to centralize your code, put the Click() and DblClick() in the Grid. In TextBox Object's Click() and DblClick(), put this code in:
>>
>>In the Click()
>>
>>This.Parent.Parent.Click() && for the Grid.Click()
>>
>>In the DblClick()
>>
>>This.Parent.Parent.DblClick() && for the Grid.DblClick()
Previous
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