Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi I have combobox1 and datagridview1 column where show name of group.

column group of datagridview1 save name of group from combobox1 in profile table.(profile=name of first table)
combobox1 binds to groupperson table in database.(groupperson = name of secound table)

when I change name of group in groupperson table I want change this group in datagridview column group automatically.(also change in profile table)

-----------------------
groupperson table:
C#
id    name
1     friend
2     family

-----------------------
datagridview1:

C#
name   family    mobilenomber   group
david  mengan    09365985555    friend

-------------------------------------------
when I change friend group to boyfriend name I want change also datagridview1 column group to boyfriend.
------------------
after change table
------------------

groupperson table:
-----------------------
C#
id    name
1     boyfriend
2     family

-----------------------

datagridview1:

SQL
name   family    mobilenomber   group
david  mengan    09365985555    boyfriend
Posted
Updated 29-Mar-13 17:06pm
v6
Comments
Sandeep Mewara 29-Mar-13 16:13pm    
What error?
Maciej Los 29-Mar-13 18:30pm    
There is probably no relationships between both tables... Show us the structure of that tables.
[no name] 29-Mar-13 23:05pm    
Still not seeing any kind of an error or the code that you have tried that demonstrates your problem.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900