I have two combobox in my DGV
1) bill_ch_code & 2) ch_ name
the code which I use to fill them is:
Dim da As New SqlDataAdapter("Select ch_code, ch_name from [Charges_Master] ORDER BY ch_type ASC", con2)
con2.Open()
Dim ds As New DataTable
da.Fill(ds)
Bill_Ch_Code.DataSource = ds
Bill_Ch_Code.DisplayMember = "ch_code"
ch_name.DataSource = ds
ch_name.DisplayMember = "ch_name"
con2.Close()
everything is working except one thing I want if the vale of any combo box is changed it will automatically change the other.
same code on normal combo box works fine for the same.
Pradeep Yadav (Social MSDN)