Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

How Can I Update a Customer using DataGridView With show details

$
0
0

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?




Viewing all articles
Browse latest Browse all 31927

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>