Home All Groups Group Topic Archive Search About

DataGridView ComboBox Column on the fly

Author
20 Dec 2006 12:02 AM
Terry Olsen
I have a Datagridview that is bound to a DataTable. So there are no
column templates to modify at design time.

Is there a way I can convert a certain column (if it exists) to a
ComboBoxColumn at runtime after the Datagridview is bound?

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

Author
20 Dec 2006 4:51 AM
Cor Ligthert [MVP]
Terry,

An easy sample on our website.

http://www.vb-tips.com/dbpages.aspx?ID=492bcbbc-f881-45c8-9b3a-62c7a184f472

Be aware that our website is full under reconstruction so sometimes it can
act strange.

Cor


Show quoteHide quote
"Terry Olsen" <tolse***@hotmail.com> schreef in bericht
news:%23n6Fuo8IHHA.1816@TK2MSFTNGP06.phx.gbl...
>I have a Datagridview that is bound to a DataTable. So there are no
> column templates to modify at design time.
>
> Is there a way I can convert a certain column (if it exists) to a
> ComboBoxColumn at runtime after the Datagridview is bound?
>
> *** Sent via Developersdex http://www.developersdex.com ***