private void gridResultado_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e) { switch (e.KeyCode) { case System.Windows.Forms.Keys.Enter: { SearchEventArgs sea = new SearchEventArgs(SelectedValue); if (RowDoubleClick != null) { RowDoubleClick(this, sea); } break; } } }
private void mzSearchPanel_RowDoubleClick(object sender, mz.erp.ui.controls.SearchEventArgs e) { this.DialogResult = DialogResult.OK; }