Torna al Thread

private void grdArticoli_EditingControlShowing(object sender, DataGridViewEditingControlShowingEventArgs e) { grdArticoli.EditingControl.KeyPress -= new KeyPressEventHandler(EditingControl_KeyPress); grdArticoli.EditingControl.KeyPress += new KeyPressEventHandler(EditingControl_KeyPress); } void EditingControl_KeyPress(object sender, KeyPressEventArgs e) { try { Char oChar_Period = char.Parse("."); Char oChar_Comma = char.Parse(","); if (e.KeyChar == oChar_Period) e.KeyChar = oChar_Comma; } catch { } }
Copyright © dotNetHell.it 2002-2024
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5