Hi!
Conteiner is hard to handle in certain cases. You also need to forward clicks on the container to grid by some way, for example, using MOUSE command or using Windows API functions as in the FancyToolTip control.
More simple approach is to add code to each column control to handle events, or make your own textbox class for grid in which you call your custom method or program.
>Hi Cetin,
>
>Should I put containers on each row of the grid, or do you have any other suggestion to know which row did the user click on?
>
>Jimi
>
>>>Hello everyone,
>>>
>>>DblClick/Click/RightClick events not working on my grid, are there any restrictions on using them?
>>>
>>>I just wanna double click on an item then show in another grid it's detail, it have to be double click, any idea?
>>>
>>>Thanks in advance,
>>>Jimi
>>
>>Jimi,
>>Grid click/dblclick/rightclick is called only when you click at a part where there are no controls (cell content - like after last column or last row).
>>You either write your code in each control,
>>or (original idea from Nick) place a transparent container in front of grid. Container then gets the clicks and you're free to propagate them to underlying control or process in container methods.
>>Cetin
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.