Connecting Tech Pros Worldwide Forums | Help | Site Map

Datagridview combobox

Newbie
 
Join Date: Mar 2007
Posts: 5
#1: Mar 27 '07
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

RedSon's Avatar
Site Moderator
 
Join Date: Jan 2007
Location: America
Posts: 3,393
#2: Mar 27 '07

re: Datagridview combobox


The title of this thread is unacceptable. Please read the FAQ before posting again.

-MODERATOR
kenobewan's Avatar
Moderator
 
Join Date: Dec 2006
Posts: 4,745
#3: Mar 28 '07

re: Datagridview combobox


Welcome to the site. I am unsure of your question - which event to use? Thanks.
Newbie
 
Join Date: Mar 2007
Posts: 5
#4: Mar 28 '07

re: Datagridview combobox


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.
Newbie
 
Join Date: Mar 2007
Posts: 5
#5: Mar 28 '07

re: Datagridview combobox


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.
Newbie
 
Join Date: Mar 2007
Posts: 5
#6: Mar 31 '07

re: Datagridview combobox


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.
kenobewan's Avatar
Moderator
 
Join Date: Dec 2006
Posts: 4,745
#7: Mar 31 '07

re: Datagridview combobox


Please don't repost questions, it is against site rules - see FAQs
Newbie
 
Join Date: Mar 2007
Posts: 5
#8: Apr 3 '07

re: Datagridview combobox


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.
RedSon's Avatar
Site Moderator
 
Join Date: Jan 2007
Location: America
Posts: 3,393
#9: Apr 3 '07

re: Datagridview combobox


Quote:

Originally Posted by dannydel

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!
Reply