Пример #1
0
 private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.ColumnIndex == 0 && e.RowIndex >= 0)//lo engrampamos y compro un cupon
     {
         CompraForm c = new CompraForm(this.dataGridView1);
         c.Owner = this;
         c.Show();
     }
 }
Пример #2
0
        private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.ColumnIndex == 0 && e.RowIndex >= 0)//lo engrampamos y compro un cupon
            {

              CompraForm  c =new CompraForm(this.dataGridView1);
              c.Owner = this;
              c.Show();
            }
        }