| | |
| | | colDescription = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colCode = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colType = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colPropStatus = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | ((ISupportInitialize)gridControl1).BeginInit(); |
| | | ((ISupportInitialize)xhsProjectSimulationAnalysisViewModelBindingSource).BeginInit(); |
| | | ((ISupportInitialize)gridView1).BeginInit(); |
| | |
| | | // |
| | | // gridView1 |
| | | // |
| | | gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colName, colDescription, colCode, colType }); |
| | | gridView1.Appearance.HeaderPanel.Options.UseTextOptions = true; |
| | | gridView1.Appearance.HeaderPanel.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colName, colDescription, colCode, colType, colPropStatus }); |
| | | gridFormatRule1.Name = "Format0"; |
| | | gridFormatRule1.Rule = formatConditionRule2ColorScale1; |
| | | gridView1.FormatRules.Add(gridFormatRule1); |
| | |
| | | // |
| | | // colName |
| | | // |
| | | colName.AppearanceCell.Options.UseTextOptions = true; |
| | | colName.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colName.FieldName = "Name"; |
| | | colName.Name = "colName"; |
| | | colName.Visible = true; |
| | | colName.VisibleIndex = 0; |
| | | colName.Width = 239; |
| | | colName.VisibleIndex = 2; |
| | | colName.Width = 107; |
| | | // |
| | | // colDescription |
| | | // |
| | | colDescription.AppearanceCell.Options.UseTextOptions = true; |
| | | colDescription.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colDescription.FieldName = "Description"; |
| | | colDescription.Name = "colDescription"; |
| | | colDescription.Visible = true; |
| | | colDescription.VisibleIndex = 3; |
| | | colDescription.Width = 491; |
| | | colDescription.VisibleIndex = 4; |
| | | colDescription.Width = 387; |
| | | // |
| | | // colCode |
| | | // |
| | | colCode.AppearanceCell.Options.UseTextOptions = true; |
| | | colCode.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colCode.FieldName = "Code"; |
| | | colCode.Name = "colCode"; |
| | | colCode.Visible = true; |
| | | colCode.VisibleIndex = 1; |
| | | colCode.Width = 134; |
| | | colCode.Width = 127; |
| | | // |
| | | // colType |
| | | // |
| | | colType.AppearanceCell.Options.UseTextOptions = true; |
| | | colType.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colType.FieldName = "Type"; |
| | | colType.Name = "colType"; |
| | | colType.Visible = true; |
| | | colType.VisibleIndex = 2; |
| | | colType.Width = 92; |
| | | colType.VisibleIndex = 0; |
| | | colType.Width = 258; |
| | | // |
| | | // colPropStatus |
| | | // |
| | | colPropStatus.FieldName = "PropStatus"; |
| | | colPropStatus.Name = "colPropStatus"; |
| | | colPropStatus.Visible = true; |
| | | colPropStatus.VisibleIndex = 3; |
| | | colPropStatus.Width = 77; |
| | | // |
| | | // XhsProjectSimulationAnalysisCtrl |
| | | // |
| | |
| | | private DevExpress.XtraGrid.Columns.GridColumn colDescription; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colCode; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colType; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colPropStatus; |
| | | } |
| | | } |