Esempio n. 1
0
        private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            DataGridViewRow  row = dataGridView1.CurrentRow as DataGridViewRow;
            frmprovedoresdet frm = new frmprovedoresdet(row.Cells["cod"].Value.ToString());

            frm.ShowDialog();
        }
Esempio n. 2
0
        protected override bool ProcessCmdKey(ref System.Windows.Forms.Message msg, System.Windows.Forms.Keys keyData)
        {
            if ((!this.dataGridView1.Focused))
            {
                return(base.ProcessCmdKey(ref msg, keyData));
            }
            if (keyData != Keys.Enter)
            {
                return(base.ProcessCmdKey(ref msg, keyData));
            }
            DataGridViewRow  row = this.dataGridView1.CurrentRow;
            frmprovedoresdet frm = new frmprovedoresdet(row.Cells["cod"].Value.ToString());

            frm.ShowDialog();
            return(true);
        }
Esempio n. 3
0
        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            frmprovedoresdet frm = new frmprovedoresdet();

            frm.ShowDialog();
        }