Firstly thanks for the quick reply. Sorry if I didn''t make myself clear previously, it was the end of a long day!
Ok versions first:
Windows XP Pro version 2002 SP2
Essential Studio 126.96.36.199
(Although I have 1.1 installed also - how can I be sure I am using the most recent framework?)
I''ve attached a solution which should make the problem obvious, I''ve cleaned the code a little since last night so only what is required is left and most things are named a little more sensibly.
What I want to achieve is to have a cell with a MenuStrip control in it, which will contain numerous options in it''s drop down menu. We like the MenuStrip control because it has icons next to the items but more importantly because it can contain folders of menu items.
We would like several of these controls in our grid and if the user clicks once on the cell the MenuStrip must display the menu options on the first click (we had some problems previously with the Control cell type where the first click gave the cell focus and then the second click opens up the menu).
Following the Calendar example we have almost achieved this. In my example solution there are four such buttons which display only hard coded options but demonstrate the problem. If all four buttons are positioned in the grid such that their cells are completely in view then it works perfectly. Switching from one button to another with a single click opens the appropriate MenuStrip and all is drawn correctly. However, if the MenuStrip to be clicked is in a cell which is partially outside the viewable area for the grid control then the click event causes the data grid to adjust it''s scroll bars so that the newly activated cell is completly in view. In doing so it fails to paint the MenuStrip control in the now active cell and the cell appears blank. A second click on the cell does nothing and to force a re-draw the user must click on another cell and back again for the control to appear correctly.
Hopefully this long winded explanation is better than previously. If you open the code I have attached then start the project and click on button you can just see in column D row 2 and you''ll see what I mean (you should see buttons first,third and four but a blank on the cell you have just clicked).
Any help most welcome!