private void _grid_Servers_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { UltraGridBand band = e.Layout.Bands[0]; band.Columns[colSeverity].Header.Caption = string.Empty; band.Columns[colSeverity].CellAppearance.ImageHAlign = Infragistics.Win.HAlign.Center; band.Columns[colSeverity].Width = 20; EditorWithText textEditor = new EditorWithText(); band.Columns[colSeverity].Editor = textEditor; band.Columns[colSeverity].Hidden = true; band.Columns[colServer].Width = 160; band.Columns[colHigh].Header.Caption = string.Empty; band.Columns[colHigh].Header.Appearance.Image = global::Idera.SQLsecure.UI.Console.Properties.Resources.HighRisk_16; band.Columns[colHigh].Header.Appearance.ImageHAlign = HAlign.Center; band.Columns[colHigh].CellAppearance.TextHAlign = HAlign.Right; band.Columns[colHigh].Width = 24; band.Columns[colMedium].Header.Caption = string.Empty; band.Columns[colMedium].Header.Appearance.Image = global::Idera.SQLsecure.UI.Console.Properties.Resources.MediumRisk_16; band.Columns[colMedium].Header.Appearance.ImageHAlign = HAlign.Center; band.Columns[colMedium].CellAppearance.TextHAlign = HAlign.Right; band.Columns[colMedium].Width = 24; band.Columns[colLow].Header.Caption = string.Empty; band.Columns[colLow].Header.Appearance.Image = global::Idera.SQLsecure.UI.Console.Properties.Resources.LowRisk_16; band.Columns[colLow].Header.Appearance.ImageHAlign = HAlign.Center; band.Columns[colLow].CellAppearance.TextHAlign = HAlign.Right; band.Columns[colLow].Width = 24; band.Columns[colStatus].Header.Caption = "Findings"; band.Columns[colStatus].Hidden = true; }
private void _grid_ExplanationNotes_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { e.Layout.Override.GroupByColumnsHidden = Infragistics.Win.DefaultableBoolean.True; e.Layout.ColumnChooserEnabled = Infragistics.Win.DefaultableBoolean.False; UltraGridBand band; band = e.Layout.Bands[0]; band.Columns[colServer].Header.Caption = @"Server"; band.Columns[colServer].Header.SetVisiblePosition(0, false); band.Columns[colServer].CellClickAction = CellClickAction.CellSelect; band.Columns[colPolicyId].Hidden = true; band.Columns[colPolicyId].ExcludeFromColumnChooser = ExcludeFromColumnChooser.True; band.Columns[colAssessmentId].Hidden = true; band.Columns[colAssessmentId].ExcludeFromColumnChooser = ExcludeFromColumnChooser.True; band.Columns[colMetricId].Hidden = true; band.Columns[colMetricId].ExcludeFromColumnChooser = ExcludeFromColumnChooser.True; band.Columns[colSnapshotId].Hidden = true; band.Columns[colSnapshotId].ExcludeFromColumnChooser = ExcludeFromColumnChooser.True; band.Columns[colSeverityCode].Header.Caption = @"Risk"; band.Columns[colSeverityCode].Header.SetVisiblePosition(1, false); band.Columns[colSeverityCode].CellClickAction = CellClickAction.CellSelect; band.Columns[colSeverityCode].CellAppearance.ImageHAlign = Infragistics.Win.HAlign.Center; band.Columns[colSeverityCode].ValueList = e.Layout.ValueLists[valueListSeverity]; band.Columns[colSeverityCode].Width = 40; band.Columns[colSeverityCode].MinWidth = 40; band.Columns[colSeverityCode].MaxWidth = 40; band.Columns[colSeverityCode].LockedWidth = true; EditorWithText textEditor = new EditorWithText(); band.Columns[colSeverityCode].Editor = textEditor; band.Columns[colIsExplained].Header.Caption = @"Explained"; band.Columns[colIsExplained].Header.SetVisiblePosition(2, false); band.Columns[colIsExplained].Width = 60; band.Columns[colIsExplained].MaxWidth = 60; band.Columns[colIsExplained].MinWidth = 60; band.Columns[colNotes].Header.Caption = @"Notes"; band.Columns[colNotes].MaxLength = 4000; band.Columns[colNotes].Nullable = Infragistics.Win.UltraWinGrid.Nullable.EmptyString; band.Columns[colMetricName].Hidden = true; band.Columns[colMetricName].ExcludeFromColumnChooser = ExcludeFromColumnChooser.True; }
private void ultraGridPolicyMetrics_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { UltraGridBand band = e.Layout.Bands[0]; band.Columns[Utility.Constants.POLICY_METRIC_COLUMN_SEVERITY].ValueList = e.Layout.ValueLists[Utility.Constants.POLICY_METRIC_VALUE_LIST_SERVERITY]; EditorWithText textEditor = new EditorWithText(); band.Columns[Utility.Constants.POLICY_METRIC_COLUMN_SEVERITY].Editor = textEditor; if (ultraGridPolicyMetrics.Visible) { ultraGridPolicyMetrics.Focus(); } }
private void ultraGridPolicyMetrics_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { UltraGridBand band = e.Layout.Bands[0]; band.Columns[colSeverity].ValueList = e.Layout.ValueLists[valueListSeverity]; EditorWithText textEditor = new EditorWithText(); band.Columns[colSeverity].Editor = textEditor; if (ultraGridPolicyMetrics.Visible) { ultraGridPolicyMetrics.Focus(); } }
private void _grid_Assessments_InitializeLayout(object sender, InitializeLayoutEventArgs e) { EditorWithText textEditor = new EditorWithText(); UltraGridBand band = e.Layout.Bands[0]; band.Columns[colHeaderStatus].CellAppearance.ImageHAlign = Infragistics.Win.HAlign.Center; band.Columns[colHeaderStatus].ValueList = e.Layout.ValueLists[valueListSeverity]; band.Columns[colHeaderStatus].Width = 40; band.Columns[colHeaderStatus].MinWidth = 40; band.Columns[colHeaderStatus].MaxWidth = 40; band.Columns[colHeaderStatus].LockedWidth = true; band.Columns[colHeaderStatus].Editor = textEditor; band.Columns[colHeaderStatus].Hidden = true; band.Columns[colHeaderName].Width = 200; band.Columns[colHeaderName].Header.ToolTipText = "Assessment Name"; band.Columns[colHeaderState].Width = 70; band.Columns[colHeaderState].Header.ToolTipText = "Assessment State: Draft, Published or Approved"; band.Columns[colHeaderDate].Width = 136; band.Columns[colHeaderDate].Header.ToolTipText = "Assessment Date"; band.Columns[colHeaderConfiguredHigh].Header.Caption = "High Configured"; band.Columns[colHeaderConfiguredHigh].Header.ToolTipText = "Number of Configured High Risk Security Checks"; band.Columns[colHeaderConfiguredHigh].CellAppearance.TextHAlign = HAlign.Right; band.Columns[colHeaderRiskHigh].Header.Caption = string.Empty; band.Columns[colHeaderRiskHigh].Header.ToolTipText = "Number of High Risk Findings"; band.Columns[colHeaderRiskHigh].Header.Appearance.Image = global::Idera.SQLsecure.UI.Console.Properties.Resources.HighRisk_16; band.Columns[colHeaderRiskHigh].Header.Appearance.ImageHAlign = HAlign.Center; band.Columns[colHeaderRiskHigh].CellAppearance.TextHAlign = HAlign.Right; band.Columns[colHeaderRiskHigh].Width = 30; band.Columns[colHeaderConfiguredMedium].Header.Caption = "Medium Configured"; band.Columns[colHeaderConfiguredMedium].Header.ToolTipText = "Number of Configured Medium Risk Security Checks"; band.Columns[colHeaderConfiguredMedium].CellAppearance.TextHAlign = HAlign.Right; band.Columns[colHeaderRiskMedium].Header.Caption = string.Empty; band.Columns[colHeaderRiskMedium].Header.ToolTipText = "Number of Medium Risk Findings"; band.Columns[colHeaderRiskMedium].Header.Appearance.Image = global::Idera.SQLsecure.UI.Console.Properties.Resources.MediumRisk_16; band.Columns[colHeaderRiskMedium].Header.Appearance.ImageHAlign = HAlign.Center; band.Columns[colHeaderRiskMedium].CellAppearance.TextHAlign = HAlign.Right; band.Columns[colHeaderRiskMedium].Width = 30; band.Columns[colHeaderConfiguredLow].Header.Caption = "Low Configured"; band.Columns[colHeaderConfiguredLow].Header.ToolTipText = "Number of Configured Low Risk Security Checks"; band.Columns[colHeaderConfiguredLow].CellAppearance.TextHAlign = HAlign.Right; band.Columns[colHeaderRiskLow].Header.Caption = string.Empty; band.Columns[colHeaderRiskLow].Header.ToolTipText = "Number of Low Risk Findings"; band.Columns[colHeaderRiskLow].Header.Appearance.Image = global::Idera.SQLsecure.UI.Console.Properties.Resources.LowRisk_16; band.Columns[colHeaderRiskLow].Header.Appearance.ImageHAlign = HAlign.Center; band.Columns[colHeaderRiskLow].CellAppearance.TextHAlign = HAlign.Right; band.Columns[colHeaderRiskLow].Width = 30; band.Columns[colHeaderDescription].Header.ToolTipText = "Assessment Description"; band.Columns[colHeaderHiddenAssessmentId].Header.Caption = "Assessment ID"; band.Columns[colHeaderHiddenAssessmentId].Header.ToolTipText = "Assessment ID used in Repository"; band.Columns[colHeaderHiddenAssessmentId].Hidden = true; band.Columns[colHeaderHiddenPolicyId].Header.Caption = "Policy ID"; band.Columns[colHeaderHiddenPolicyId].Header.ToolTipText = "Policy ID used in Repository"; band.Columns[colHeaderHiddenPolicyId].Hidden = true; band.Columns[colHeaderHiddenPolicyId].ExcludeFromColumnChooser = ExcludeFromColumnChooser.True; }