private void dgvView_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e) { if (e.RowIndex > -1) { DbViewViewer v = new DbViewViewer(dgvView.Rows[e.RowIndex].DataBoundItem as SOView); v.ShowDialog(); } }