private void button6_Click(object sender, EventArgs e) { localhost.Service1 q = new localhost.Service1(); selected_row = dataGridView3.CurrentCell.RowIndex; DataGridViewRow newdata = dataGridView3.Rows[selected_row]; bool pr = true; bool qr = true; bool dt = true; localhost.Service1 local = new localhost.Service1(); local.update(newdata.Cells[3].Value.ToString(), newdata.Cells[8].Value.ToString(), int.Parse(textBox5.Text), pr, int.Parse(textBox6.Text), qr, DateTime.Parse(dateTimePicker3.Text), dt); local.QuantNotify(selected_row, pr); BindingSource b = new BindingSource(); b.DataSource = local.showQuantexpNotify(); dataGridView3.DataSource = b; }