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(); }
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); }
private void toolStripButton1_Click(object sender, EventArgs e) { frmprovedoresdet frm = new frmprovedoresdet(); frm.ShowDialog(); }