B2015-125: Remove leave cell event, event was not always activated for reset of background color
This commit is contained in:
parent
c504e37285
commit
a8d2ba7181
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user