Skip to content

Commit

Permalink
Hide create index column when showing query plan from string.
Browse files Browse the repository at this point in the history
  • Loading branch information
Giorgi committed Nov 15, 2016
1 parent c6a6180 commit 79238e2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/QueryPlanVisualizer/QueryPlanUserControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ public void DisplayExecutionPlanDetails(string planXml, string planHtml, List<Mi

indexesTabPage.Text = $"{this.indexes.Count} Missing Index{(this.indexes.Count > 1 ? "es" : "")}";

indexesDataGridView.Columns[indexesDataGridView.ColumnCount - 1].Visible = DatabaseHelper != null;

indexesDataGridView.DataSource = this.indexes;
indexesDataGridView.ResetBindings();
}
Expand Down

0 comments on commit 79238e2

Please sign in to comment.