如果是用数据表就很简单了啊
DataView a = new DataView()
用a.Table = "子表"
a.RowFilter = "主表关联ID = " + comboBox1.SelectedValue.ToString();
comboBox2数据和a关联
DataView a = new DataView()
用a.Table = "子表"
a.RowFilter = "主表关联ID = " + comboBox1.SelectedValue.ToString();
comboBox2数据和a关联