Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / July 2007

Tip: Looking for answers? Try searching our database.

DataGridView ComboBoxColumn

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Paul - 19 Jul 2007 18:22 GMT
I am trying to use the DataGridView to accomplish a certain task.
Here is my scenario:
I have a datasource that has a Model/Make relationship.  It can be likened
to a user filling in what cars they own.  So they add a new row and select
the Mae of their car from a combobox.  Then they can select the model from
another combobox in the same grid.  The model combobox only contains possible
models for the make selected.  In turn, if they go back to that row later and
select a different make, the model choices should now correspond to the newly
selected make.
Everything else on my winform is bound so, for consistency sake, I am trying
to keep all this databound too.
Any ideas, sample code, etc???
For what it is worth, I am aware that one can create a custom datagridview
combox column.  I have looked at this briefly and it is hard for me to
determine what events I would need to override in order to get my desired
functionality.
Any ideas?

Thanks in advanced!
Manish Bafna - 20 Jul 2007 05:00 GMT
Hi,
Below links should help you:
http://www.windowsclient.net/Samples/Go%20To%20Market/DataGridView/DataGridView%
20FAQ.doc


http://www.windowsclient.net/Samples/Go%20To%20Market/DataGridView/DataGridView%
20Samples.zip

Signature

Hope this helps.
Thanks and Regards.
Manish Bafna.
MCP and MCTS.

> I am trying to use the DataGridView to accomplish a certain task.
> Here is my scenario:
[quoted text clipped - 15 lines]
>
> Thanks in advanced!

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.