| | |
| | | // |
| | | // gridView1 |
| | | // |
| | | 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 }); |
| | | gridFormatRule1.Name = "Format0"; |
| | | gridFormatRule1.Rule = formatConditionRule2ColorScale1; |
| | |
| | | // |
| | | // 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 = 116; |
| | | // |
| | | // 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.Width = 424; |
| | | // |
| | | // 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 = 137; |
| | | // |
| | | // 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 = 279; |
| | | // |
| | | // XhsProjectSimulationAnalysisCtrl |
| | | // |