DataGrid Embedded Custom Controls disappear under the scroll bar...
- From: "Justin Pitcher" <justin.pitcher@xxxxxxxxxxxxxxxxxxxx>
- Date: 19 May 2006 04:43:08 -0700
I have developed a number of controls that work excellently within the
DataGrid, apart from one problem - I cannot successfully make then
paint outside the boundary of the grid. To elucidate, the combobox
based one (using the standard .NET ComboBox} works fine - the drop down
list is drawn on top of the DataGrid boundary when editing close to the
edge. I wondered if this was using a particular window style, but I
have tried replicating the window styles (at least, those that are
sensible) of this ComboLBox (as described by Spy++) using a
CreateParams override in my UserControl derived class. It doesn't do
I have used BringToFront() and all other .NET related z-order type
calls with no success. Platform calls to SetWindowPos using all
conceivable possibilities do not work either, though I can get the
control to paint over the scroll bar like this, it won't paint outside
the grid. I have also tried a few SendMessage type calls. So how does
Microsoft get this combo box drop down to behave as it does?
My controls are bigger and live below than the cells they override,
hence this problem. None of the MS or MSDN articles on
DataGridColumnStyle overrides cover this.
If anyone knows the answer it'd be great! Thanks.
- Prev by Date: Re: enter and display currency
- Next by Date: Re: Drawing on the WebBrowser control
- Previous by thread: DataGrid Sort Header
- Next by thread: TreeNode vs. ImageList and adding image from project files at runtime