private void Form_AddMember_Load(object sender, EventArgs e)
{
da.SelectCommand = new SqlCommand("SELECT * from dbo.membership_details", cs);
DataSet ds = new DataSet();
da.Fill(ds, "membership_details");
comboBox1.DataSource = ds.Tables["membership_details"];
comboBox1.DisplayMember = "membership_desc";
comboBox1.ValueMember = "membershiptype_id";
da.SelectCommand = new SqlCommand("select membership_fees from dbo.membership_details where membership_desc='" + comboBox1.SelectedValue + "'", cs);
SqlCommand cmd = new SqlCommand("select membership_fees from dbo.membership_details where membership_desc='" + comboBox1.SelectedValue + "'", cs);
da.Fill(ds, "membership_details.membership_fees");
textBox7.DataBindings.Add(new Binding("Text", ds, "membership_details.membership_fees"));
private void comboBox1_SelectedIndexChanged_1(object sender, EventArgs e)
{
da.SelectCommand = new SqlCommand("select membership_fees from dbo.membership_details where membership_desc='" + comboBox1.SelectedValue.ToString()+ "'", cs);
da.Fill(ds, "membership_details.membership_fees");
textBox7.Text = comboBox1.SelectedValue.ToString();
combobox1=membership_desc
textbox7=fees(automatically)
Suggest me what i m missing here....THe data is fixed it is not changing as i change values of combobox...