Main Page | Report this Page
.NET DotNet Forum Index  »  ADO .NET Forum  »  DataGridView...
Page 1 of 1    

DataGridView...

Author Message
Gregory A. Beamer...
Posted: Thu Oct 08, 2009 7:45 am
Guest
"Grant Schenck" <schenckg at (no spam) optonline.net> wrote in
news:eYIJjXuRKHA.1268 at (no spam) TK2MSFTNGP04.phx.gbl:

Quote:
I;'ve been able to get what I wnat if I use the design time Wizards
and properties. Specifically I can drill down to my column in the
view and change the type to a combo box and setting the appropriate
properties I get a list of the StationList names. However, what I can
figure out is how to change the column at runtime. What is the trick?

You have to remove the control already in the cell and replace with a
combobox. This can be done in the row binding event handler. I am
assuming ASP.NET here, but the method for windows forms is similar.

Peace and Grace,

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

Twitter: at (no spam) gbworld
Blog: http://gregorybeamer.spaces.live.com

*******************************************
| Think outside the box! |
*******************************************
 
Grant Schenck...
Posted: Thu Oct 08, 2009 1:59 pm
Guest
Actually Win Forms...
--
Grant Schenck


"Gregory A. Beamer" <NoSpamMgbworld at (no spam) comcast.netNoSpamM> wrote in message
news:Xns9C9E58C7CD612gbworld at (no spam) 207.46.248.16...
Quote:
"Grant Schenck" <schenckg at (no spam) optonline.net> wrote in
news:eYIJjXuRKHA.1268 at (no spam) TK2MSFTNGP04.phx.gbl:

I;'ve been able to get what I wnat if I use the design time Wizards
and properties. Specifically I can drill down to my column in the
view and change the type to a combo box and setting the appropriate
properties I get a list of the StationList names. However, what I can
figure out is how to change the column at runtime. What is the trick?

You have to remove the control already in the cell and replace with a
combobox. This can be done in the row binding event handler. I am
assuming ASP.NET here, but the method for windows forms is similar.

Peace and Grace,

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

Twitter: at (no spam) gbworld
Blog: http://gregorybeamer.spaces.live.com

*******************************************
| Think outside the box! |
*******************************************
 
 
Page 1 of 1    
All times are GMT - 5 Hours
The time now is Tue Dec 01, 2009 1:43 am