Example #1
0
        private void button3_Click(object sender, EventArgs e)
        {
            DialogResult result = MessageBox.Show("Kayıt Silinsin mi?", "Kayıt Silme", MessageBoxButtons.YesNoCancel);

            if (result == DialogResult.Yes)
            {
                DataRow r  = dt_kayit.Rows[dataGridView1.SelectedRows[0].Index];
                int     id = Convert.ToInt32(r["ID"].ToString());
                Kayit.Sil(id.ToString());
                VerileriYukle();
            }
        }