public static CustomBandedGridView ColumnEditor_ForSuspension(CustomBandedGridView bandedGridView_ForSuspension, Kinematics_Software_New _r1) { bandedGridView_ForSuspension.OptionsView.ShowColumnHeaders = true; bandedGridView_ForSuspension.Columns[0].Caption = "Pick Up Point"; bandedGridView_ForSuspension.Columns[0].AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; bandedGridView_ForSuspension.Columns[0].BestFit(); bandedGridView_ForSuspension.Columns[0].Group(); bandedGridView_ForSuspension.Columns[0].Visible = false; bandedGridView_ForSuspension.Columns[1].Caption = "X (mm)"; bandedGridView_ForSuspension.Columns[1].AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; bandedGridView_ForSuspension.Columns[1].BestFit(); bandedGridView_ForSuspension.Columns[1].DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric; bandedGridView_ForSuspension.Columns[1].DisplayFormat.FormatString = "n3"; bandedGridView_ForSuspension.Columns[2].Caption = "Y (mm)"; bandedGridView_ForSuspension.Columns[2].AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; bandedGridView_ForSuspension.Columns[2].BestFit(); bandedGridView_ForSuspension.Columns[2].DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric; bandedGridView_ForSuspension.Columns[2].DisplayFormat.FormatString = "n3"; bandedGridView_ForSuspension.Columns[3].Caption = "Z (mm)"; bandedGridView_ForSuspension.Columns[3].AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; bandedGridView_ForSuspension.Columns[3].BestFit(); bandedGridView_ForSuspension.Columns[3].DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric; bandedGridView_ForSuspension.Columns[3].DisplayFormat.FormatString = "n3"; bandedGridView_ForSuspension.ExpandAllGroups(); return(bandedGridView_ForSuspension); }
public static CustomBandedGridView ColumnEditor_ForChassis(CustomBandedGridView bandedGridView_ForChassis) { bandedGridView_ForChassis.OptionsView.ShowColumnHeaders = true; bandedGridView_ForChassis.Columns[0].Caption = "Component"; bandedGridView_ForChassis.Columns[0].AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; bandedGridView_ForChassis.Columns[0].BestFit(); bandedGridView_ForChassis.Columns[0].Group(); bandedGridView_ForChassis.Columns[0].Visible = false; bandedGridView_ForChassis.Columns[1].Caption = "Mass (Kg)"; bandedGridView_ForChassis.Columns[1].AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; bandedGridView_ForChassis.Columns[1].BestFit(); bandedGridView_ForChassis.Columns[2].Caption = "X (mm)"; bandedGridView_ForChassis.Columns[2].AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; bandedGridView_ForChassis.Columns[2].BestFit(); bandedGridView_ForChassis.Columns[3].Caption = "Y (mm)"; bandedGridView_ForChassis.Columns[3].AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; bandedGridView_ForChassis.Columns[3].BestFit(); bandedGridView_ForChassis.Columns[4].Caption = "Z (mm)"; bandedGridView_ForChassis.Columns[4].AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; bandedGridView_ForChassis.Columns[4].BestFit(); bandedGridView_ForChassis.ExpandAllGroups(); return(bandedGridView_ForChassis); }
//static void button_Click(object sender, EventArgs e) //{ // r1.CopyFrontLeftTORight_Click(sender, e); //} #endregion #region Column Override method to edit the column properties for the Motion View public static CustomBandedGridView ColumnEditor_ForMotion(CustomBandedGridView bandedGridView_Motion, Kinematics_Software_New _r1) { bandedGridView_Motion.OptionsView.ShowColumnHeaders = true; bandedGridView_Motion.Columns[0].Caption = "Percentage Motion"; bandedGridView_Motion.Columns[0].AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; bandedGridView_Motion.Columns[0].BestFit(); //bandedGridView_Motion.Columns[0].Group(); bandedGridView_Motion.Columns[0].Visible = true; bandedGridView_Motion.Columns[1].Caption = "Wheel Deflection"; bandedGridView_Motion.Columns[1].AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; bandedGridView_Motion.Columns[1].BestFit(); bandedGridView_Motion.Columns[1].DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric; bandedGridView_Motion.Columns[1].DisplayFormat.FormatString = "n3"; bandedGridView_Motion.Columns[2].Caption = "Steering Angle"; bandedGridView_Motion.Columns[2].AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; bandedGridView_Motion.Columns[2].BestFit(); bandedGridView_Motion.Columns[2].DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric; bandedGridView_Motion.Columns[2].DisplayFormat.FormatString = "n3"; bandedGridView_Motion.ExpandAllGroups(); return(bandedGridView_Motion); }
public static CustomBandedGridView ColumnEditor_ForLoadCases(CustomBandedGridView _bandedGridView, string _caption1, string _caption2) { //float fontSize = 11; //FontFamily LoadCaseFont = new FontFamily("Tahoma"); //_bandedGridView.Appearance.Row.Font = new Font(LoadCaseFont, fontSize); _bandedGridView.OptionsView.ShowColumnHeaders = true; _bandedGridView.Columns[0].Caption = _caption1; _bandedGridView.Columns[0].AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; _bandedGridView.Columns[0].BestFit(); _bandedGridView.Columns[1].Caption = _caption2; _bandedGridView.Columns[1].AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; _bandedGridView.Columns[1].BestFit(); _bandedGridView.ExpandAllGroups(); return(_bandedGridView); }