RE: How to create a customized DataGridViewColumn that b
- From: rehan <rehan@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 29 Apr 2008 06:00:00 -0700
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 ***
- References:
- How to create a customized DataGridViewColumn that …
- From: LuisP
- RE: How to create a customized DataGridViewColumn that …
- From: Linda Liu[MSFT]
- RE: How to create a customized DataGridViewColumn that …
- From: Linda Liu[MSFT]
- RE: How to create a customized DataGridViewColumn that …
- From: LuisP
- RE: RE: How to create a customized DataGridViewColumn that …
- From: Linda Liu[MSFT]
- RE: RE: How to create a customized DataGridViewColumn that …
- From: Linda Liu[MSFT]
- RE: RE: How to create a customized DataGridViewColumn that …
- From: LuisP
- RE: RE: RE: How to create a customized DataGridViewColumn that …
- From: Linda Liu[MSFT]
- RE: RE: RE: How to create a customized DataGridViewColumn that …
- From: Linda Liu[MSFT]
- How to create a customized DataGridViewColumn that …
- Prev by Date: Re: Mismatched behaviour between regular compiler and refactoring compiler
- Next by Date: Re: RTF To PDF
- Previous by thread: RE: RE: RE: How to create a customized DataGridViewColumn that …
- Next by thread: Custom Control via wrapper
- Index(es):
Relevant Pages
|