Пример #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (dataGridView1.Rows.GetRowCount(DataGridViewElementStates.Selected) > 0)
            {
                try
                {
                    Querys query = new Querys();
                    int    i     = dataGridView1.SelectedRows[0].Index;



                    String a = dataGridView1.Rows[i].Cells[0].Value.ToString();


                    query.EliminarVenta(a);

                    Actualizar();
                }
                catch (Exception a) {
                }
            }
        }