Discussion:
Multiple Controls in a single Cel?
(too old to reply)
Jim Bob
2009-09-15 21:44:53 UTC
Permalink
I have VS2008. I have jumped from VS2003. I noticed the new
DateGridView control. Is it possible to have more than one control (ie
Textbox, lable) in a cell(s) of this grid?

_________________________________________________________
Actno Name1
Type Name2
Balance Name3
_________________________________________________________
ditto
ditto
ditto
_________________________________________________________

If so, tell me how to do this.

Thanks

jwc

*** Sent via Developersdex http://www.developersdex.com ***
Eddie
2009-09-16 08:20:34 UTC
Permalink
Post by Jim Bob
I have VS2008. I have jumped from VS2003. I noticed the new
DateGridView control. Is it possible to have more than one control (ie
Textbox, lable) in a cell(s) of this grid?
I think it's possible, but you'd have to do it yourself by creating your
own Control-derived class which implemented the
IDataGridViewEditingControl interface, and your own class derived from
DataGridViewCell to use the control.

This article should point you in the right direction:
How to: Host Controls in Windows Forms DataGridView Cells
http://msdn.microsoft.com/en-us/library/7tas5c80.aspx
--
Eddie ***@deguello.org
Loading...