RE: How to create a customized DataGridViewColumn that b

Tech-Archive recommends: Fix windows errors by optimizing your registry



i added my custom control in datagridviewcell and i override the paint
method to be visible in design mode ,but i still have a problem
my custom control is custom comboBox and i need to Initiate it after loading
its column because i take its datasource from owing column datasource
i tried to make this in the constructor of the cell but i find the owing
column null

any help will be appreciated

"Robert" wrote:

Thank You, Linda, for Your quick reply!

I know this Article and it is a good startup, but doesn't fit to my
needs exactly.
I have the same goal as Luis: I want to host Controls in a
DataGridViewCell, but not only in editmode, the Controls should be
visible and instantiated all the time.

All solutions I have found so far, use the trick to paint the controls
when cell is not in Editmode and only create an instance of the control
when the cell is in editmode.
This is not a solution for me, because I have very complex Controls to
host, such as grahps, dynamic curves... which can not be drawn by
myself....Only an instance of the Control itself knows how to draw and
update the Control.

referring to Your posting from 08.04.08, there You wrote:
"derive your custom datagridview cell from the
DataGridViewCell class directly.Then you have a chance to implement
hosted control display functionality
when the cell in not in edit mode."

Because I have no sourcecode of .Net classes, I don't know how to start
writing my own cell-class, direved from DataGridViewCell, which can be a
container for any UserControl.

Can You help me getting started?

Thank You!

Sincerely, Robert






*** Sent via Developersdex http://www.developersdex.com ***

.



Relevant Pages

  • Re: Easy Question ;-) How to render a html page in a table cell of an ASP.NET page
    ... So if I have an IFrame based custom control, I am assuming that I can ... you cant have that in a table cell as it will create invalid html. ... I convert the .doc file to an html and render it back to the ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Easy Question ;-) How to render a html page in a table cell of an ASP.NET page
    ... So if I have an IFrame based custom control, I am assuming that I can ... you cant have that in a table cell as it will create invalid html. ... I convert the .doc file to an html and render it back to the ...
    (microsoft.public.dotnet.framework.aspnet)
  • Grid Like Display for Controls
    ... This means this particular control would be repeated ... but has the capability to use a custom control for each cell. ... I don't think the grid control (nor the True DB Grid .NET control that we ...
    (microsoft.public.dotnet.languages.vb.controls)
  • Grid Like Display for Controls
    ... This means this particular control would be repeated ... but has the capability to use a custom control for each cell. ... I don't think the grid control (nor the True DB Grid .NET control that we ...
    (microsoft.public.dotnet.languages.vb)
  • Epigenetic Control of the Postphylotypic Development
    ... Epigenetic Control of the Postphylotypic Development ... inducing there muscle cell differentiation and muscle formation ... of Muscle Research and Cell Motility 23: ... Epigenetics of the Development of Endocrine Glands ...
    (talk.origins)