C# GRDİVİEW SELECTİON

  private void dataGridView1_SelectionChanged(object sender, EventArgs e)

    {

        txtId.Text =

        dataGridView1.CurrentRow.Cells["MUSTERI_ID"].Value.ToString();

        TxtCariAdi.Text =

        dataGridView1.CurrentRow.Cells["CARI"].Value.ToString();

        TxtCariKod.Text =

        dataGridView1.CurrentRow.Cells["CARI_KODU"].Value.ToString();

        TxtTel.Text =

        dataGridView1.CurrentRow.Cells["TELEFON"].Value.ToString();

        TxtFax.Text =

        dataGridView1.CurrentRow.Cells["FAX"].Value.ToString();

        TxtAdres.Text =

        dataGridView1.CurrentRow.Cells["ADRES"].Value.ToString();

        TxtNot.Text =

        dataGridView1.CurrentRow.Cells["NOTE"].Value.ToString();

        TxtYetkili.Text =

        dataGridView1.CurrentRow.Cells["YETKILI"].Value.ToString();

    }