General information
Category:
Object Oriented Programming
>Hi All:
>
>I have a problem with a run-time created grid.
>
>How do i assign the right click method to a text box in the grid ?
>In the begining of the form the grid as -1 columns (because the content changes a lot!), as the grid is created , i make the new columns and assign controlsource's to the new grid columns.
>
>The problem is that i need (much) a right click event on the grid , but when i right click the grid , is always the text box right click event that is called and , of course , that one is empty !
>
>TIA
You could create a sub-classed textbox with the code required in the .RightClick event. You will need to programmatically add that textbox to a grid column and then set the .CurrentControl property to the newly added textbox.
Steve
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