From a8d2ba71818b426a39fe0b18c06ce5e739fdaeb1 Mon Sep 17 00:00:00 2001 From: Kathy Date: Wed, 23 Sep 2015 16:32:28 +0000 Subject: [PATCH] B2015-125: Remove leave cell event, event was not always activated for reset of background color --- PROMS/Volian.Controls.Library/VlnFlexGrid.cs | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/PROMS/Volian.Controls.Library/VlnFlexGrid.cs b/PROMS/Volian.Controls.Library/VlnFlexGrid.cs index dca95b8b..b78b3162 100644 --- a/PROMS/Volian.Controls.Library/VlnFlexGrid.cs +++ b/PROMS/Volian.Controls.Library/VlnFlexGrid.cs @@ -1030,7 +1030,6 @@ namespace Volian.Controls.Library this.AfterResizeColumn += new C1.Win.C1FlexGrid.RowColEventHandler(this.Grid_AfterResize); this.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this._KeyPress); this.OwnerDrawCell += new OwnerDrawCellEventHandler(this.Grid_OwnerDrawCell); - this.LeaveCell += new EventHandler(VlnFlexGrid_LeaveCell); this.KeyDown += new KeyEventHandler(VlnFlexGrid_KeyDown); this.KeyUp +=new KeyEventHandler(VlnFlexGrid_KeyUp); @@ -1170,23 +1169,6 @@ namespace Volian.Controls.Library break; } } - - void VlnFlexGrid_LeaveCell(object sender, EventArgs e) - { - //CellStyle csd = this.CursorCell.StyleDisplay; - //CellStyle cs = this.GetCellRange(Row, Col).Style; - //if (cs != null) - //{ - // Console.WriteLine("LeaveCell Style = {0}", cs.Name); - // Console.WriteLine("LeaveCell StyleDisplay = {0}", csd.Name); - // cs.ForeColor = Color.Black; - //} - CellStyle cs = this.Styles["Focus"]; - cs.ForeColor = Color.Black; - cs = this.Styles["Highlight"]; - cs.ForeColor = Color.Black; - } - //void VlnFlexGrid_LeaveEdit(object sender, RowColEventArgs e) //{ // //Console.WriteLine("LeaveEdit Style = {0}", this.GetCellRange(e.Row, e.Col).Style.Name);