473,321 Members | 1,669 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,321 software developers and data experts.

DataGridView with Combobox in Column

I'm binding Access manually to my Grid and it works great, but I want to include a combo box in a grid column that displays fields from a related table.

What is a good way to go about this?

Thanks
Oct 10 '07 #1
4 1639
jrtox
89
I'm binding Access manually to my Grid and it works great, but I want to include a combo box in a grid column that displays fields from a related table.

What is a good way to go about this?

Thanks
Hello, take a look in this link and download attachment.
http://www.thescripts.com/forum/thread718154.html

maybe it can help you.

But if not, Please Explain more your problem

Regards
Phils Ervin
Oct 10 '07 #2
Hello, take a look in this link and download attachment.
http://www.thescripts.com/forum/thread718154.html

maybe it can help you.

But if not, Please Explain more your problem

Regards
Phils Ervin

This isn't quite what I'm trying to do. For one thing, I'm working in VB.NET. Also,I want the descripive value of the related table to display in the DataGridView. (This is easily done through a query.) However, I also want to able to select and change the descriptive value by clicking in the cell and seeing a dropdown/combobox that I can pick from.

Thoughts?

Thanks
Rich Knapp
Oct 11 '07 #3
jrtox
89
This isn't quite what I'm trying to do. For one thing, I'm working in VB.NET. Also,I want the descripive value of the related table to display in the DataGridView. (This is easily done through a query.) However, I also want to able to select and change the descriptive value by clicking in the cell and seeing a dropdown/combobox that I can pick from.

Thoughts?

Thanks
Rich Knapp

I see, in the first place you did not specify that your using VB.NET

Anyway, i cant help you with that/

regards
Phils Ervin
Oct 12 '07 #4
moggaa
13
El Salamoh 3likom we Ra7mat Allah we Barakatoh

It's very easy to do that, you have to but in your data grid or data view any item template then you have to add in it your drop down list with your data text filed and you data value filed
then you have to create function return your data table then in your data gird item data bound you have to find the control i mean you drop down list
then you will add for this dripo down list in data Source your data table ( function return data table ) then your drop down list data bind

that will be good Inshaa Allah

Eng. Maged
Nov 25 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Aaron Smith | last post by:
Ok, this is an odd one, but I could use some assistance with the framework 2 in VB.Net... I want to have a DataGridViewColumn, only have it use the ComboBox, then when they drop down the...
3
by: Bob | last post by:
Thinking two things, 1- Creating a userControl -yeah you guessed it, a multi column drop down combobox - I've looked at several articles and did not find what I need, one that's bindable and that...
3
by: Art | last post by:
Hi, Forgive me for posting this message in 2 groups -- it appears that the Data Access group isn't very active, so I'm posting again here: I have a DataTable that I want to fill using a...
4
by: Matt | last post by:
I have been searching all over the web for a way to sort a DataGridView based on the actual text being shown in a ComboBox column as opposed to the underlying value (an ID in this case). Can anyone...
3
by: sklett | last post by:
I'm changing from a DataGrid to a DataGridView and have run across a problem. The items that are bound to the DataGrid have an int Property that represents a primary key of a lookup table in my...
8
by: Brian Pelton | last post by:
This is on .Net 2.0 in a WinForms application. I have a DataGridView that is bound to a BindingSource. The DataGridView has 3 columns. The first two are "normal" text columns and the last is a...
4
by: =?Utf-8?B?Q2hyaXM=?= | last post by:
I am trying to populate a DataGridView Combobox column with a different data binding source (dataset) depending upon a selection made in a previous column. I can handle the previous column but how...
3
by: =?Utf-8?B?Sm9obiBCdW5keQ==?= | last post by:
New to databinding in vs2005, I always did it manually in 2003. I have no problem loading comboboxes, and a change in that combobox changes the data in the textboxes but I can not figure out a way...
0
by: sixths3ns3 | last post by:
My DataGridView has two columns. Combobox Column 2 displays list based on Combobox Column 1 selected value. The code below works fine when I select a value on Column 1, and select a value on Column...
18
by: Andrus | last post by:
Marc, Thank you very much. I have issue on implementing add row properly using this. User presses down arrow in last row in grid starting adding new row. Then user changes its mind desiding...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.