diff --git a/DMS Viewer/DataViewer.cs b/DMS Viewer/DataViewer.cs index f3c9f33..2d509d5 100644 --- a/DMS Viewer/DataViewer.cs +++ b/DMS Viewer/DataViewer.cs @@ -61,7 +61,7 @@ public void DrawDataTable() private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { - if (e.RowIndex >= 0) + if (e.RowIndex >= 0 && e.ColumnIndex >= 0) { var content = dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ToString(); new LongDataViewer(content).ShowDialog(this);