I do not think this is possible using just the DataGridView, however you
should easily be able to construct your own user control using a
DataGridView and adding your own header control to it that could allow
for things like that. 

The only real "problem" you might run into is column resizing - you will
need to come up with a way to link your new custom headers with their
related columns. There may be other issues, but I can't think of
anything else at the moment.

Greg

-----Original Message-----
From: Discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] On Behalf Of Peter Vertes
Sent: Friday, January 19, 2007 16:55
To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM
Subject: ComboBox Inside a ColumnHeader

Hi List,

    Is it possible to embed a ComboBox inside the header (and only the
header) row of a DataGridView ?  I've been playing around with Visual
Studio
and
I can make all the cells of a row to have ComboBoxes but I only want to
do
this for the column header.  Is it possible to do this ?

-Pete

===================================
This list is hosted by DevelopMentor(r)  http://www.develop.com

View archives and manage your subscription(s) at
http://discuss.develop.com

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to