473,326 Members | 2,126 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,326 software developers and data experts.

Datagridview combobox

see I have a question


I values in a datagridview combobox like,I named my combobox column as c1 and then I entered

values in it like


c.item.add("a")
c.item.add("b")
c.item.add("c")


Then I made another column next to this column as a datagridview combobox and named it as combobox c2


Now what I want is if I select "a" from the combobox1 the value corresponding to it should be

displayed in combobox2 may be (f,g,h) and if I select "b" the value corresponding to it should be displayed

like(j,k,l) and also till I enter value in the last column a new row should not be displayed
Mar 27 '07 #1
8 1742
RedSon
5,000 Expert 4TB
The title of this thread is unacceptable. Please read the FAQ before posting again.

-MODERATOR
Mar 27 '07 #2
kenobewan
4,871 Expert 4TB
Welcome to the site. I am unsure of your question - which event to use? Thanks.
Mar 28 '07 #3
I have a doubt related with the datagridview combobox in vb.net 2005

That is I have made on column as combobox in datagridview and named it

as c1 using the property window and then entered value in this manually

like

c1.items.add("A")

c1.items.add("B")

c1.items.add("C")

After that I entered another cell next to this cell as combobox and

named it as c2, now my problem is if I select a value from combobox1,like if I choose

"A" I want the other combobox2 to be filled with "D","E"and "F" and if I select

"B" from first combobox1,combobox2 should be filled with value "G",

"H" and"I".Please help me as soon as possible.
Mar 28 '07 #4
Let it be any event I just want.....

First of all on load event of the form I entered a datgridview object and using the

column property window I made two columns as combobox and named them

as c1 and c2 .And then in the load event of the form I entered values"A","B","C"

in combobox1 .After that I ran the application.The first combobox contained

values "A","B"and "C".Now if I select "A" from combobox1 while the application i

s running,combobox2 should be filled with values "D","F","G" and if I select "B"

from combobox1,combobox2 should be filled with values "H","I" and"J"...like

that.Please give me a solution.
Mar 28 '07 #5
First of all on load event of the form I entered a datgridview object and using the

column property window I made two columns as combobox and named them

as c1 and c2 .And then in the load event of the form I entered values"A","B","C"

in combobox1 .After that I ran the application.The first combobox contained

values "A","B"and "C".Now if I select "A" from combobox1 while the application i

s running,combobox2 should be filled with values "D","F","G" and if I select "B"

from combobox1,combobox2 should be filled with values "H","I" and"J"...like

that.Please give me a solution.
Mar 31 '07 #6
kenobewan
4,871 Expert 4TB
Please don't repost questions, it is against site rules - see FAQs
Mar 31 '07 #7
Nobody is answering my question thats why I'm repeating it.Instead of solving

my problem people read this and inform me that this topic is reposted.
Apr 3 '07 #8
RedSon
5,000 Expert 4TB
Nobody is answering my question thats why I'm repeating it.Instead of solving

my problem people read this and inform me that this topic is reposted.
If you are having trouble getting a response you might want to consider reading the part of the FAQ that discusses how to ask a question. It is not our job to solve your problem, if someone has some helpful advice then they will share it with you. Otherwise do not think for one second that we are here to do your bidding. Just because no one is responding to your post does not give you the right to continue posting more and more of the same question.

How to ask a question READ IT!
Apr 3 '07 #9

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...
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...
8
by: | last post by:
I am sure this has been asked and answered, but here goes anyway... VS.Net 2005, VB.Net How can you display more than one field in the displaymember property of a combobox inside the...
0
by: c_shah | last post by:
I have the controls on my form display the values of the currently selected row of the DataGridView. I am binding my DataGridView to a collection (Collection - which implements IBindingList...
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...
2
by: David Jackson | last post by:
Hello, I have an unbound DataGridView of which one of the columns is a ComboBox colum containing category data, plus an additional option called <newSo when the ComboBox is dropped down it looks...
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: Andrus | last post by:
I tried to use modeless picklist for DataGridView custom ComboBoxColumn without success. Steps to reproduce issue: 1. Run code 2. Enter some character 3. Press Tab Observed:
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
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: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
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: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.