DataGrid Embedded Custom Controls disappear under the scroll bar...



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
the job.

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.

Justin

.



Relevant Pages

  • Re: How do I create a simple table? DataGrid seems very complicated
    ... reflect the information for the currently selected channel. ... seemed more simple than a "bound" DataGrid for what I needed. ... handles interacting with this piece of hardware I'm using. ... TableLayoutPanel and manage the individual controls myself. ...
    (microsoft.public.dotnet.framework.windowsforms.controls)
  • Re: Newbie Question!
    ... and creating a crystal report which looks like an employment ... I don't think a datagrid will work here because the date won't be ... BoundColumn nameColumn = new BoundColumn; ... So I won't know how many controls I need until the reader is ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: UI prototyping
    ... programs, like Paint Shop Pro, is the vector graphics and layers features. ... much like the finished product ('cause it uses standard Windows controls). ... More grief about Agent! ... instinct to hit when my thinking shifts from narrating to editing. ...
    (comp.programming)
  • Re: ViewState in a dynamic control
    ... while wrestling with a bug in the Repeater and DataGrid (see the post ... ViewState to bind to, and, I believe, is subsequently used to determine ... The problem with many templated databound controls is that many ... CreateChildControls might get called before LoadViewState occurs. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: GradFrame bombing VB6?
    ... form, picturebox, usercontrol backgrounds (anything that has a Paint event, an hDC and hWnd ... So I copied all the controls that were on the gradframe I was ... sometimes it would bomb when I quit running ... frames are not supported controls. ...
    (microsoft.public.vb.controls)