private void dgvTable_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e) { if (e.RowIndex > -1) { DbTableViewer v = new DbTableViewer(dgvTable.Rows[e.RowIndex].DataBoundItem as SOTable); v.ShowDialog(); } }