in my code when I edit any rows and press button update , this works well.
private void button2_Click(object sender, EventArgs e)
{
try
{
bin = new BindingSource();
cmd = new SqlCommandBuilder(sda1);
bin.DataSource = dt1;
dataGridView1.DataSource = bin;
sda1.Update(dt1);
MessageBox.Show("Update Copmleted.");
}
catch (Exception ex)
{
MessageBox.Show(ex.Message, "Erorr", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}but I need like this sample
<When I press update button after select name of customer the window of customer appears with details, then update anything in his field>
how can I?